Skip to content

Commit 7b6dfbd

Browse files
c7tincunschonni
authored andcommitted
Removed "-*-user-select" checks.
MDN precisely states that "user-select" is not a standard property. https://developer.mozilla.org/en-US/docs/Web/CSS/user-select Closes gh-385
1 parent c80c93e commit 7b6dfbd

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/rules/vendor-prefix.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,7 @@ CSSLint.addRule({
7373
"-ms-transform-origin" : "transform-origin",
7474

7575
"-moz-box-sizing" : "box-sizing",
76-
"-webkit-box-sizing" : "box-sizing",
77-
78-
"-moz-user-select" : "user-select",
79-
"-khtml-user-select" : "user-select",
80-
"-webkit-user-select" : "user-select"
76+
"-webkit-box-sizing" : "box-sizing"
8177
};
8278

8379
//event handler for beginning of rules

tests/rules/vendor-prefix.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@
5959
Assert.areEqual("Missing standard property 'box-shadow' to go along with '-moz-box-shadow'.", result.messages[0].message);
6060
},
6161

62-
"Using -moz-user-select should result in a warning.": function(){
62+
"Using -moz-user-select should not result in a warning.": function(){
6363
var result = CSSLint.verify("h1 { -moz-user-select:none; }", { "vendor-prefix": 1 });
64-
Assert.areEqual(1, result.messages.length);
65-
Assert.areEqual("warning", result.messages[0].type);
66-
Assert.areEqual("Missing standard property 'user-select' to go along with '-moz-user-select'.", result.messages[0].message);
64+
Assert.areEqual(0, result.messages.length);
6765
},
6866

6967
"Using @font-face should not result in an error (#90)": function(){

0 commit comments

Comments
 (0)