Permalink
Browse files

Merge pull request #339 from zachleat/master

Crusade against -moz-border-radius
  • Loading branch information...
2 parents 17cfb23 + 6fd5672 commit d3ece60d4ec3a4cee4de906f093553dc62b278c9 @nzakas nzakas committed Jan 17, 2013
Showing with 3 additions and 7 deletions.
  1. +1 −1 src/rules/compatible-vendor-prefixes.js
  2. +2 −6 tests/rules/compatible-vendor-prefixes.js
@@ -42,7 +42,7 @@ CSSLint.addRule({
"border-end-style" : "webkit moz",
"border-end-width" : "webkit moz",
"border-image" : "webkit moz o",
- "border-radius" : "webkit moz",
+ "border-radius" : "webkit",
"border-start" : "webkit moz",
"border-start-color" : "webkit moz",
"border-start-style" : "webkit moz",
@@ -7,13 +7,9 @@
name: "Compatible Vendor Prefix Warnings",
- "Using -webkit-border-radius should warn to also include -moz-border-radius.": function(){
+ "Using -webkit-border-radius should not warn to also include -moz-border-radius.": function(){
var result = CSSLint.verify("h1 { -webkit-border-radius: 5px; }", { "compatible-vendor-prefixes": 1 });
- Assert.areEqual(1, result.messages.length);
- Assert.areEqual("warning", result.messages[0].type);
- Assert.areEqual("The property -moz-border-radius is compatible with -webkit-border-radius and should be included as well.", result.messages[0].message);
- Assert.areEqual(6, result.messages[0].col);
- Assert.areEqual(1, result.messages[0].line);
+ Assert.areEqual(0, result.messages.length);
},
"Using -webkit-transition and -moz-transition should warn to also include -o-transition.": function() {

0 comments on commit d3ece60

Please sign in to comment.