autoprefixer 9.1.5 → 9.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +76 -58
- package/README.md +61 -57
- package/data/prefixes.js +2 -15
- package/lib/browsers.js +1 -1
- package/lib/hacks/align-content.js +5 -3
- package/lib/hacks/align-items.js +5 -3
- package/lib/hacks/align-self.js +5 -3
- package/lib/hacks/appearance.js +2 -2
- package/lib/hacks/background-clip.js +2 -2
- package/lib/hacks/block-logical.js +4 -4
- package/lib/hacks/border-radius.js +2 -2
- package/lib/hacks/break-props.js +10 -6
- package/lib/hacks/flex-basis.js +2 -2
- package/lib/hacks/flex-direction.js +37 -37
- package/lib/hacks/flex-flow.js +38 -38
- package/lib/hacks/flex-grow.js +5 -3
- package/lib/hacks/flex-shrink.js +2 -2
- package/lib/hacks/flex.js +5 -3
- package/lib/hacks/fullscreen.js +5 -3
- package/lib/hacks/gradient.js +5 -5
- package/lib/hacks/grid-area.js +3 -1
- package/lib/hacks/grid-rows-columns.js +2 -2
- package/lib/hacks/grid-template-areas.js +2 -8
- package/lib/hacks/grid-template.js +2 -11
- package/lib/hacks/grid-utils.js +559 -239
- package/lib/hacks/image-rendering.js +2 -2
- package/lib/hacks/intrinsic.js +5 -3
- package/lib/hacks/justify-content.js +5 -3
- package/lib/hacks/order.js +7 -5
- package/lib/hacks/pixelated.js +10 -6
- package/lib/hacks/place-self.js +57 -0
- package/lib/hacks/placeholder.js +11 -5
- package/lib/hacks/writing-mode.js +2 -2
- package/lib/prefixer.js +1 -1
- package/lib/prefixes.js +1 -0
- package/lib/processor.js +125 -28
- package/lib/transition.js +3 -3
- package/lib/utils.js +16 -0
- package/package.json +5 -5
|
@@ -31,9 +31,9 @@ function (_Declaration) {
|
|
|
31
31
|
|
|
32
32
|
if (spec === 2012) {
|
|
33
33
|
return prefix + 'flex-line-pack';
|
|
34
|
-
} else {
|
|
35
|
-
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
36
34
|
}
|
|
35
|
+
|
|
36
|
+
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
39
|
* Return property name by final spec
|
|
@@ -54,7 +54,9 @@ function (_Declaration) {
|
|
|
54
54
|
if (spec === 2012) {
|
|
55
55
|
decl.value = AlignContent.oldValues[decl.value] || decl.value;
|
|
56
56
|
return _Declaration.prototype.set.call(this, decl, prefix);
|
|
57
|
-
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (spec === 'final') {
|
|
58
60
|
return _Declaration.prototype.set.call(this, decl, prefix);
|
|
59
61
|
}
|
|
60
62
|
|
package/lib/hacks/align-items.js
CHANGED
|
@@ -31,11 +31,13 @@ function (_Declaration) {
|
|
|
31
31
|
|
|
32
32
|
if (spec === 2009) {
|
|
33
33
|
return prefix + 'box-align';
|
|
34
|
-
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (spec === 2012) {
|
|
35
37
|
return prefix + 'flex-align';
|
|
36
|
-
} else {
|
|
37
|
-
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
38
38
|
}
|
|
39
|
+
|
|
40
|
+
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
39
41
|
};
|
|
40
42
|
/**
|
|
41
43
|
* Return property name by final spec
|
package/lib/hacks/align-self.js
CHANGED
|
@@ -31,9 +31,9 @@ function (_Declaration) {
|
|
|
31
31
|
|
|
32
32
|
if (spec === 2012) {
|
|
33
33
|
return prefix + 'flex-item-align';
|
|
34
|
-
} else {
|
|
35
|
-
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
36
34
|
}
|
|
35
|
+
|
|
36
|
+
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
39
|
* Return property name by final spec
|
|
@@ -54,7 +54,9 @@ function (_Declaration) {
|
|
|
54
54
|
if (spec === 2012) {
|
|
55
55
|
decl.value = AlignSelf.oldValues[decl.value] || decl.value;
|
|
56
56
|
return _Declaration.prototype.set.call(this, decl, prefix);
|
|
57
|
-
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (spec === 'final') {
|
|
58
60
|
return _Declaration.prototype.set.call(this, decl, prefix);
|
|
59
61
|
}
|
|
60
62
|
|
package/lib/hacks/appearance.js
CHANGED
|
@@ -25,9 +25,9 @@ function (_Declaration) {
|
|
|
25
25
|
_proto.prefixed = function prefixed(prop, prefix) {
|
|
26
26
|
if (prop.indexOf('-start') !== -1) {
|
|
27
27
|
return prefix + prop.replace('-block-start', '-before');
|
|
28
|
-
} else {
|
|
29
|
-
return prefix + prop.replace('-block-end', '-after');
|
|
30
28
|
}
|
|
29
|
+
|
|
30
|
+
return prefix + prop.replace('-block-end', '-after');
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* Return property name by spec
|
|
@@ -37,9 +37,9 @@ function (_Declaration) {
|
|
|
37
37
|
_proto.normalize = function normalize(prop) {
|
|
38
38
|
if (prop.indexOf('-before') !== -1) {
|
|
39
39
|
return prop.replace('-before', '-block-start');
|
|
40
|
-
} else {
|
|
41
|
-
return prop.replace('-after', '-block-end');
|
|
42
40
|
}
|
|
41
|
+
|
|
42
|
+
return prop.replace('-after', '-block-end');
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
return BlockLogical;
|
|
@@ -25,9 +25,9 @@ function (_Declaration) {
|
|
|
25
25
|
_proto.prefixed = function prefixed(prop, prefix) {
|
|
26
26
|
if (prefix === '-moz-') {
|
|
27
27
|
return prefix + (BorderRadius.toMozilla[prop] || prop);
|
|
28
|
-
} else {
|
|
29
|
-
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
30
28
|
}
|
|
29
|
+
|
|
30
|
+
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* Return unprefixed version of property
|
package/lib/hacks/break-props.js
CHANGED
|
@@ -33,11 +33,13 @@ function (_Declaration) {
|
|
|
33
33
|
_proto.normalize = function normalize(prop) {
|
|
34
34
|
if (prop.indexOf('inside') !== -1) {
|
|
35
35
|
return 'break-inside';
|
|
36
|
-
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (prop.indexOf('before') !== -1) {
|
|
37
39
|
return 'break-before';
|
|
38
|
-
} else {
|
|
39
|
-
return 'break-after';
|
|
40
40
|
}
|
|
41
|
+
|
|
42
|
+
return 'break-after';
|
|
41
43
|
};
|
|
42
44
|
/**
|
|
43
45
|
* Change prefixed value for avoid-column and avoid-page
|
|
@@ -59,11 +61,13 @@ function (_Declaration) {
|
|
|
59
61
|
_proto.insert = function insert(decl, prefix, prefixes) {
|
|
60
62
|
if (decl.prop !== 'break-inside') {
|
|
61
63
|
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
|
62
|
-
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (/region/i.test(decl.value) || /page/i.test(decl.value)) {
|
|
63
67
|
return undefined;
|
|
64
|
-
} else {
|
|
65
|
-
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
|
66
68
|
}
|
|
69
|
+
|
|
70
|
+
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
|
67
71
|
};
|
|
68
72
|
|
|
69
73
|
return BreakProps;
|
package/lib/hacks/flex-basis.js
CHANGED
|
@@ -42,9 +42,9 @@ function (_Declaration) {
|
|
|
42
42
|
|
|
43
43
|
if (spec === 2012) {
|
|
44
44
|
return prefix + 'flex-preferred-size';
|
|
45
|
-
} else {
|
|
46
|
-
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
47
45
|
}
|
|
46
|
+
|
|
47
|
+
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
50
|
* Ignore 2009 spec and use flex property for 2012
|
|
@@ -42,45 +42,45 @@ function (_Declaration) {
|
|
|
42
42
|
|
|
43
43
|
if (spec !== 2009) {
|
|
44
44
|
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
var already = decl.parent.some(function (i) {
|
|
48
|
+
return i.prop === prefix + 'box-orient' || i.prop === prefix + 'box-direction';
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
if (already) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
var v = decl.value;
|
|
56
|
+
var orient, dir;
|
|
57
|
+
|
|
58
|
+
if (v === 'inherit' || v === 'initial' || v === 'unset') {
|
|
59
|
+
orient = v;
|
|
60
|
+
dir = v;
|
|
45
61
|
} else {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
if (already) {
|
|
51
|
-
return undefined;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
var v = decl.value;
|
|
55
|
-
var orient, dir;
|
|
56
|
-
|
|
57
|
-
if (v === 'inherit' || v === 'initial' || v === 'unset') {
|
|
58
|
-
orient = v;
|
|
59
|
-
dir = v;
|
|
60
|
-
} else {
|
|
61
|
-
orient = v.indexOf('row') !== -1 ? 'horizontal' : 'vertical';
|
|
62
|
-
dir = v.indexOf('reverse') !== -1 ? 'reverse' : 'normal';
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
var cloned = this.clone(decl);
|
|
66
|
-
cloned.prop = prefix + 'box-orient';
|
|
67
|
-
cloned.value = orient;
|
|
68
|
-
|
|
69
|
-
if (this.needCascade(decl)) {
|
|
70
|
-
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
decl.parent.insertBefore(decl, cloned);
|
|
74
|
-
cloned = this.clone(decl);
|
|
75
|
-
cloned.prop = prefix + 'box-direction';
|
|
76
|
-
cloned.value = dir;
|
|
77
|
-
|
|
78
|
-
if (this.needCascade(decl)) {
|
|
79
|
-
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return decl.parent.insertBefore(decl, cloned);
|
|
62
|
+
orient = v.indexOf('row') !== -1 ? 'horizontal' : 'vertical';
|
|
63
|
+
dir = v.indexOf('reverse') !== -1 ? 'reverse' : 'normal';
|
|
83
64
|
}
|
|
65
|
+
|
|
66
|
+
var cloned = this.clone(decl);
|
|
67
|
+
cloned.prop = prefix + 'box-orient';
|
|
68
|
+
cloned.value = orient;
|
|
69
|
+
|
|
70
|
+
if (this.needCascade(decl)) {
|
|
71
|
+
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
decl.parent.insertBefore(decl, cloned);
|
|
75
|
+
cloned = this.clone(decl);
|
|
76
|
+
cloned.prop = prefix + 'box-direction';
|
|
77
|
+
cloned.value = dir;
|
|
78
|
+
|
|
79
|
+
if (this.needCascade(decl)) {
|
|
80
|
+
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return decl.parent.insertBefore(decl, cloned);
|
|
84
84
|
};
|
|
85
85
|
/**
|
|
86
86
|
* Clean two properties for 2009 spec
|
package/lib/hacks/flex-flow.js
CHANGED
|
@@ -34,45 +34,45 @@ function (_Declaration) {
|
|
|
34
34
|
|
|
35
35
|
if (spec !== 2009) {
|
|
36
36
|
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
|
37
|
-
} else {
|
|
38
|
-
var values = decl.value.split(/\s+/).filter(function (i) {
|
|
39
|
-
return i !== 'wrap' && i !== 'nowrap' && 'wrap-reverse';
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
if (values.length === 0) {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
var already = decl.parent.some(function (i) {
|
|
47
|
-
return i.prop === prefix + 'box-orient' || i.prop === prefix + 'box-direction';
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
if (already) {
|
|
51
|
-
return undefined;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
var value = values[0];
|
|
55
|
-
var orient = value.indexOf('row') !== -1 ? 'horizontal' : 'vertical';
|
|
56
|
-
var dir = value.indexOf('reverse') !== -1 ? 'reverse' : 'normal';
|
|
57
|
-
var cloned = this.clone(decl);
|
|
58
|
-
cloned.prop = prefix + 'box-orient';
|
|
59
|
-
cloned.value = orient;
|
|
60
|
-
|
|
61
|
-
if (this.needCascade(decl)) {
|
|
62
|
-
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
decl.parent.insertBefore(decl, cloned);
|
|
66
|
-
cloned = this.clone(decl);
|
|
67
|
-
cloned.prop = prefix + 'box-direction';
|
|
68
|
-
cloned.value = dir;
|
|
69
|
-
|
|
70
|
-
if (this.needCascade(decl)) {
|
|
71
|
-
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
return decl.parent.insertBefore(decl, cloned);
|
|
75
37
|
}
|
|
38
|
+
|
|
39
|
+
var values = decl.value.split(/\s+/).filter(function (i) {
|
|
40
|
+
return i !== 'wrap' && i !== 'nowrap' && 'wrap-reverse';
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
if (values.length === 0) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
var already = decl.parent.some(function (i) {
|
|
48
|
+
return i.prop === prefix + 'box-orient' || i.prop === prefix + 'box-direction';
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
if (already) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
var value = values[0];
|
|
56
|
+
var orient = value.indexOf('row') !== -1 ? 'horizontal' : 'vertical';
|
|
57
|
+
var dir = value.indexOf('reverse') !== -1 ? 'reverse' : 'normal';
|
|
58
|
+
var cloned = this.clone(decl);
|
|
59
|
+
cloned.prop = prefix + 'box-orient';
|
|
60
|
+
cloned.value = orient;
|
|
61
|
+
|
|
62
|
+
if (this.needCascade(decl)) {
|
|
63
|
+
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
decl.parent.insertBefore(decl, cloned);
|
|
67
|
+
cloned = this.clone(decl);
|
|
68
|
+
cloned.prop = prefix + 'box-direction';
|
|
69
|
+
cloned.value = dir;
|
|
70
|
+
|
|
71
|
+
if (this.needCascade(decl)) {
|
|
72
|
+
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return decl.parent.insertBefore(decl, cloned);
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
return FlexFlow;
|
package/lib/hacks/flex-grow.js
CHANGED
|
@@ -42,11 +42,13 @@ function (_Declaration) {
|
|
|
42
42
|
|
|
43
43
|
if (spec === 2009) {
|
|
44
44
|
return prefix + 'box-flex';
|
|
45
|
-
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (spec === 2012) {
|
|
46
48
|
return prefix + 'flex-positive';
|
|
47
|
-
} else {
|
|
48
|
-
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
49
49
|
}
|
|
50
|
+
|
|
51
|
+
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
50
52
|
};
|
|
51
53
|
|
|
52
54
|
return Flex;
|
package/lib/hacks/flex-shrink.js
CHANGED
|
@@ -42,9 +42,9 @@ function (_Declaration) {
|
|
|
42
42
|
|
|
43
43
|
if (spec === 2012) {
|
|
44
44
|
return prefix + 'flex-negative';
|
|
45
|
-
} else {
|
|
46
|
-
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
47
45
|
}
|
|
46
|
+
|
|
47
|
+
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
50
|
* Ignore 2009 spec and use flex property for 2012
|
package/lib/hacks/flex.js
CHANGED
|
@@ -33,9 +33,9 @@ function (_Declaration) {
|
|
|
33
33
|
|
|
34
34
|
if (spec === 2009) {
|
|
35
35
|
return prefix + 'box-flex';
|
|
36
|
-
} else {
|
|
37
|
-
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
38
36
|
}
|
|
37
|
+
|
|
38
|
+
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* Return property name by final spec
|
|
@@ -58,7 +58,9 @@ function (_Declaration) {
|
|
|
58
58
|
decl.value = list.space(decl.value)[0];
|
|
59
59
|
decl.value = Flex.oldValues[decl.value] || decl.value;
|
|
60
60
|
return _Declaration.prototype.set.call(this, decl, prefix);
|
|
61
|
-
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (spec === 2012) {
|
|
62
64
|
var components = list.space(decl.value);
|
|
63
65
|
|
|
64
66
|
if (components.length === 3 && components[2] === '0') {
|
package/lib/hacks/fullscreen.js
CHANGED
|
@@ -25,11 +25,13 @@ function (_Selector) {
|
|
|
25
25
|
_proto.prefixed = function prefixed(prefix) {
|
|
26
26
|
if (prefix === '-webkit-') {
|
|
27
27
|
return ':-webkit-full-screen';
|
|
28
|
-
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (prefix === '-moz-') {
|
|
29
31
|
return ':-moz-full-screen';
|
|
30
|
-
} else {
|
|
31
|
-
return ":" + prefix + "fullscreen";
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
return ":" + prefix + "fullscreen";
|
|
33
35
|
};
|
|
34
36
|
|
|
35
37
|
return Fullscreen;
|
package/lib/hacks/gradient.js
CHANGED
|
@@ -118,12 +118,12 @@ function (_Value) {
|
|
|
118
118
|
type: 'space',
|
|
119
119
|
value: i
|
|
120
120
|
};
|
|
121
|
-
} else {
|
|
122
|
-
return {
|
|
123
|
-
type: 'word',
|
|
124
|
-
value: i
|
|
125
|
-
};
|
|
126
121
|
}
|
|
122
|
+
|
|
123
|
+
return {
|
|
124
|
+
type: 'word',
|
|
125
|
+
value: i
|
|
126
|
+
};
|
|
127
127
|
});
|
|
128
128
|
return prefix.concat(params.slice(1));
|
|
129
129
|
};
|
package/lib/hacks/grid-area.js
CHANGED
|
@@ -24,7 +24,7 @@ function (_Declaration) {
|
|
|
24
24
|
/**
|
|
25
25
|
* Translate grid-area to separate -ms- prefixed properties
|
|
26
26
|
*/
|
|
27
|
-
_proto.insert = function insert(decl, prefix, prefixes) {
|
|
27
|
+
_proto.insert = function insert(decl, prefix, prefixes, result) {
|
|
28
28
|
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
|
29
29
|
var values = utils.parse(decl);
|
|
30
30
|
|
|
@@ -41,6 +41,8 @@ function (_Declaration) {
|
|
|
41
41
|
value = _ref[1];
|
|
42
42
|
utils.insertDecl(decl, prop, value);
|
|
43
43
|
});
|
|
44
|
+
utils.warnTemplateSelectorNotFound(decl, result);
|
|
45
|
+
utils.warnIfGridRowColumnExists(decl, result);
|
|
44
46
|
return undefined;
|
|
45
47
|
};
|
|
46
48
|
|
|
@@ -32,9 +32,9 @@ function (_Declaration) {
|
|
|
32
32
|
prop: prop,
|
|
33
33
|
prefix: prefix
|
|
34
34
|
});
|
|
35
|
-
} else {
|
|
36
|
-
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
37
35
|
}
|
|
36
|
+
|
|
37
|
+
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
40
|
* Change IE property back
|
|
@@ -10,12 +10,11 @@ var Declaration = require('../declaration');
|
|
|
10
10
|
|
|
11
11
|
var _require = require('./grid-utils'),
|
|
12
12
|
parseGridAreas = _require.parseGridAreas,
|
|
13
|
-
|
|
13
|
+
warnMissedAreas = _require.warnMissedAreas,
|
|
14
14
|
prefixTrackProp = _require.prefixTrackProp,
|
|
15
15
|
prefixTrackValue = _require.prefixTrackValue,
|
|
16
16
|
getGridGap = _require.getGridGap,
|
|
17
17
|
warnGridGap = _require.warnGridGap,
|
|
18
|
-
warnDuplicateNames = _require.warnDuplicateNames,
|
|
19
18
|
inheritGridGap = _require.inheritGridGap;
|
|
20
19
|
|
|
21
20
|
function getGridRows(tpl) {
|
|
@@ -135,17 +134,12 @@ function (_Declaration) {
|
|
|
135
134
|
hasColumns: hasColumns,
|
|
136
135
|
decl: decl,
|
|
137
136
|
result: result
|
|
138
|
-
}); // warn if grid-template-areas has a duplicate area name
|
|
139
|
-
|
|
140
|
-
warnDuplicateNames({
|
|
141
|
-
decl: decl,
|
|
142
|
-
result: result
|
|
143
137
|
});
|
|
144
138
|
var areas = parseGridAreas({
|
|
145
139
|
rows: gridRows,
|
|
146
140
|
gap: gap
|
|
147
141
|
});
|
|
148
|
-
|
|
142
|
+
warnMissedAreas(areas, decl, result);
|
|
149
143
|
return decl;
|
|
150
144
|
};
|
|
151
145
|
|
|
@@ -10,10 +10,9 @@ var Declaration = require('../declaration');
|
|
|
10
10
|
|
|
11
11
|
var _require = require('./grid-utils'),
|
|
12
12
|
parseTemplate = _require.parseTemplate,
|
|
13
|
-
|
|
13
|
+
warnMissedAreas = _require.warnMissedAreas,
|
|
14
14
|
getGridGap = _require.getGridGap,
|
|
15
15
|
warnGridGap = _require.warnGridGap,
|
|
16
|
-
warnDuplicateNames = _require.warnDuplicateNames,
|
|
17
16
|
inheritGridGap = _require.inheritGridGap;
|
|
18
17
|
|
|
19
18
|
var GridTemplate =
|
|
@@ -63,12 +62,8 @@ function (_Declaration) {
|
|
|
63
62
|
hasColumns: hasColumns,
|
|
64
63
|
decl: decl,
|
|
65
64
|
result: result
|
|
66
|
-
}); // warn if grid-template has a duplicate area name
|
|
67
|
-
|
|
68
|
-
warnDuplicateNames({
|
|
69
|
-
decl: decl,
|
|
70
|
-
result: result
|
|
71
65
|
});
|
|
66
|
+
warnMissedAreas(areas, decl, result);
|
|
72
67
|
|
|
73
68
|
if (hasRows && hasColumns || hasAreas) {
|
|
74
69
|
decl.cloneBefore({
|
|
@@ -86,10 +81,6 @@ function (_Declaration) {
|
|
|
86
81
|
});
|
|
87
82
|
}
|
|
88
83
|
|
|
89
|
-
if (hasAreas) {
|
|
90
|
-
insertAreas(areas, decl, result);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
84
|
return decl;
|
|
94
85
|
};
|
|
95
86
|
|