Skip to content

Commit 5fd4280

Browse files
author
Nicholas C. Zakas
committed
Updated compatible vendor prefix rules for IE10
1 parent eae1287 commit 5fd4280

2 files changed

Lines changed: 26 additions & 24 deletions

File tree

src/rules/compatible-vendor-prefixes.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ CSSLint.addRule({
2626

2727
// See http://peter.sh/experiments/vendor-prefixed-css-property-overview/ for details
2828
compatiblePrefixes = {
29-
"animation" : "webkit moz",
30-
"animation-delay" : "webkit moz",
31-
"animation-direction" : "webkit moz",
32-
"animation-duration" : "webkit moz",
33-
"animation-fill-mode" : "webkit moz",
34-
"animation-iteration-count" : "webkit moz",
35-
"animation-name" : "webkit moz",
36-
"animation-play-state" : "webkit moz",
37-
"animation-timing-function" : "webkit moz",
29+
"animation" : "webkit moz ms",
30+
"animation-delay" : "webkit moz ms",
31+
"animation-direction" : "webkit moz ms",
32+
"animation-duration" : "webkit moz ms",
33+
"animation-fill-mode" : "webkit moz ms",
34+
"animation-iteration-count" : "webkit moz ms",
35+
"animation-name" : "webkit moz ms",
36+
"animation-play-state" : "webkit moz ms",
37+
"animation-timing-function" : "webkit moz ms",
3838
"appearance" : "webkit moz",
3939
"border-end" : "webkit moz",
4040
"border-end-color" : "webkit moz",
@@ -55,13 +55,13 @@ CSSLint.addRule({
5555
"box-pack" : "webkit moz ms",
5656
"box-sizing" : "webkit moz",
5757
"box-shadow" : "webkit moz",
58-
"column-count" : "webkit moz",
59-
"column-gap" : "webkit moz",
60-
"column-rule" : "webkit moz",
61-
"column-rule-color" : "webkit moz",
62-
"column-rule-style" : "webkit moz",
63-
"column-rule-width" : "webkit moz",
64-
"column-width" : "webkit moz",
58+
"column-count" : "webkit moz ms",
59+
"column-gap" : "webkit moz ms",
60+
"column-rule" : "webkit moz ms",
61+
"column-rule-color" : "webkit moz ms",
62+
"column-rule-style" : "webkit moz ms",
63+
"column-rule-width" : "webkit moz ms",
64+
"column-width" : "webkit moz ms",
6565
"hyphens" : "epub moz",
6666
"line-break" : "webkit ms",
6767
"margin-end" : "webkit moz",
@@ -74,11 +74,11 @@ CSSLint.addRule({
7474
"text-size-adjust" : "webkit ms",
7575
"transform" : "webkit moz ms o",
7676
"transform-origin" : "webkit moz ms o",
77-
"transition" : "webkit moz o",
78-
"transition-delay" : "webkit moz o",
79-
"transition-duration" : "webkit moz o",
80-
"transition-property" : "webkit moz o",
81-
"transition-timing-function" : "webkit moz o",
77+
"transition" : "webkit moz o ms",
78+
"transition-delay" : "webkit moz o ms",
79+
"transition-duration" : "webkit moz o ms",
80+
"transition-property" : "webkit moz o ms",
81+
"transition-timing-function" : "webkit moz o ms",
8282
"user-modify" : "webkit moz",
8383
"user-select" : "webkit moz",
8484
"word-break" : "epub ms",

tests/rules/compatible-vendor-prefixes.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
Assert.areEqual("The property -moz-border-radius is compatible with -webkit-border-radius and should be included as well.", result.messages[0].message);
1515
},
1616

17-
"Using -webkit-transition and -moz-transition should warn to also include -o-transition.": function(){
17+
"Using -webkit-transition and -moz-transition should warn to also include -o-transition and -ms-transition.": function(){
1818
var result = CSSLint.verify("h1 { -webkit-transition: height 20px 1s; -moz-transition: height 20px 1s; }", { "compatible-vendor-prefixes": 1 });
19-
Assert.areEqual(1, result.messages.length);
19+
Assert.areEqual(2, result.messages.length);
2020
Assert.areEqual("warning", result.messages[0].type);
2121
Assert.areEqual("The property -o-transition is compatible with -webkit-transition and -moz-transition and should be included as well.", result.messages[0].message);
22+
Assert.areEqual("warning", result.messages[1].type);
23+
Assert.areEqual("The property -ms-transition is compatible with -webkit-transition and -moz-transition and should be included as well.", result.messages[1].message);
2224
},
2325

2426
"Using -webkit-transform should warn to also include -moz-transform, -ms-transform, and -o-transform.": function(){
@@ -33,7 +35,7 @@
3335
},
3436

3537
"Using all compatible vendor prefixes for animation should be allowed with no warnings.": function(){
36-
var result = CSSLint.verify(".next:focus { -moz-animation: 'diagonal-slide' 5s 10; -webkit-animation: 'diagonal-slide' 5s 10; }", { "compatible-vendor-prefixes": 0 });
38+
var result = CSSLint.verify(".next:focus { -moz-animation: 'diagonal-slide' 5s 10; -webkit-animation: 'diagonal-slide' 5s 10; -ms-animation: 'diagonal-slide' 5s 10; }", { "compatible-vendor-prefixes": 0 });
3739
Assert.areEqual(0, result.messages.length);
3840
},
3941

0 commit comments

Comments
 (0)