Skip to content

Commit d3ece60

Browse files
committed
Merge pull request #339 from zachleat/master
Crusade against -moz-border-radius
2 parents 17cfb23 + 6fd5672 commit d3ece60

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/rules/compatible-vendor-prefixes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ CSSLint.addRule({
4242
"border-end-style" : "webkit moz",
4343
"border-end-width" : "webkit moz",
4444
"border-image" : "webkit moz o",
45-
"border-radius" : "webkit moz",
45+
"border-radius" : "webkit",
4646
"border-start" : "webkit moz",
4747
"border-start-color" : "webkit moz",
4848
"border-start-style" : "webkit moz",

tests/rules/compatible-vendor-prefixes.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@
77

88
name: "Compatible Vendor Prefix Warnings",
99

10-
"Using -webkit-border-radius should warn to also include -moz-border-radius.": function(){
10+
"Using -webkit-border-radius should not warn to also include -moz-border-radius.": function(){
1111
var result = CSSLint.verify("h1 { -webkit-border-radius: 5px; }", { "compatible-vendor-prefixes": 1 });
12-
Assert.areEqual(1, result.messages.length);
13-
Assert.areEqual("warning", result.messages[0].type);
14-
Assert.areEqual("The property -moz-border-radius is compatible with -webkit-border-radius and should be included as well.", result.messages[0].message);
15-
Assert.areEqual(6, result.messages[0].col);
16-
Assert.areEqual(1, result.messages[0].line);
12+
Assert.areEqual(0, result.messages.length);
1713
},
1814

1915
"Using -webkit-transition and -moz-transition should warn to also include -o-transition.": function() {

0 commit comments

Comments
 (0)