Skip to content

Commit e96cde5

Browse files
authored
Merge branch 'master' into feature/colors
2 parents c54f5f5 + f3e2dc6 commit e96cde5

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/css/Properties.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ var Properties = module.exports = {
378378
"pitch-range" : 1,
379379
"play-during" : 1,
380380
"pointer-events" : "auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all",
381-
"position" : "static | relative | absolute | fixed | sticky",
381+
"position" : "static | relative | absolute | fixed | sticky | -webkit-sticky",
382382
"presentation-level" : 1,
383383
"punctuation-trim" : 1,
384384

tests/css/Validation.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,6 +1569,23 @@ var YUITest = require("yuitest"),
15691569
}
15701570
}));
15711571

1572+
suite.add(new ValidationTestCase({
1573+
property: "position",
1574+
1575+
valid: [
1576+
"static",
1577+
"relative",
1578+
"absolute",
1579+
"fixed",
1580+
"sticky",
1581+
"-webkit-sticky"
1582+
],
1583+
1584+
invalid: {
1585+
"foo" : "Expected (static | relative | absolute | fixed | sticky | -webkit-sticky) but found 'foo'."
1586+
}
1587+
}));
1588+
15721589
suite.add(new ValidationTestCase({
15731590
property: "stroke-dasharray",
15741591

0 commit comments

Comments
 (0)