Skip to content

Commit 40cc3c1

Browse files
committed
Version 0.9.5
1 parent fb54a0a commit 40cc3c1

File tree

11 files changed

+3424
-2370
lines changed

11 files changed

+3424
-2370
lines changed

CHANGELOG

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
February 3, 2012 - v0.9.5
2+
3+
* Ensure time values are properly checked (fixes #228) (Nicholas C. Zakas)
4+
* Implemented rule to avoid unqualified attribute selectors (fixes 218) (Nicholas C. Zakas)
5+
* Ensure 0s, 0ms don't say to omit the units (fixes #224) (Nicholas C. Zakas)
6+
* Merge pull request #227 from daniellmb/patch-1 (Nicholas C. Zakas)
7+
* This is seems to be a bug with the regex use of split, blank lines are not included so the line number used for evidence don't match up. (Daniel Lamb)
8+
* Merge pull request #225 from Zearin/master (Nicholas C. Zakas)
9+
* Added 2-space indentation for output of `--list-rules`. (Tony)
10+
11+
112
January 5, 2012 - v0.9.2
213

314
* More validations fixes (fixes #219) (Nicholas C. Zakas)
@@ -224,6 +235,8 @@ June 15, 2011 - v0.1.0
224235

225236

226237

238+
239+
227240

228241

229242

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<project name="csslint" default="build.all">
22

33
<!-- version number -->
4-
<property name="csslint.version" value="0.9.2" />
4+
<property name="csslint.version" value="0.9.5" />
55

66
<!-- the directories containing the source files -->
77
<property name="src.dir" value="./src" />

release/csslint-node.js

Lines changed: 561 additions & 394 deletions
Large diffs are not rendered by default.

release/csslint-rhino.js

Lines changed: 562 additions & 395 deletions
Large diffs are not rendered by default.

release/csslint-tests.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,6 +1685,38 @@ background: -ms-linear-gradient(top, #1e5799 ,#2989d8 ,#207cca ,#7db9e8 );
16851685

16861686
})();
16871687

1688+
(function(){
1689+
1690+
/*global YUITest, CSSLint*/
1691+
var Assert = YUITest.Assert;
1692+
1693+
YUITest.TestRunner.add(new YUITest.TestCase({
1694+
1695+
name: "Unqualified Attributes Errors",
1696+
1697+
"Using an unqualified attribute selector alone should result in a warning": function(){
1698+
var result = CSSLint.verify("[type=text] { font-size: 10px; }", {"unqualified-attributes": 1 });
1699+
Assert.areEqual(1, result.messages.length);
1700+
Assert.areEqual("warning", result.messages[0].type);
1701+
Assert.areEqual("Unqualified attribute selectors are known to be slow.", result.messages[0].message);
1702+
},
1703+
1704+
"Using an unqualified attribute selector as the right-most part should result in a warning": function(){
1705+
var result = CSSLint.verify("p div [type=text] { font-size: 10px; }", {"unqualified-attributes": 1 });
1706+
Assert.areEqual(1, result.messages.length);
1707+
Assert.areEqual("warning", result.messages[0].type);
1708+
Assert.areEqual("Unqualified attribute selectors are known to be slow.", result.messages[0].message);
1709+
},
1710+
1711+
"Using an unqualified attribute selector in the middle should not result in a warning": function(){
1712+
var result = CSSLint.verify("[type=text] .foo { font-size: 10px; } ", {"unqualified-attributes": 1 });
1713+
Assert.areEqual(0, result.messages.length);
1714+
}
1715+
1716+
}));
1717+
1718+
})();
1719+
16881720
(function(){
16891721

16901722
/*global YUITest, CSSLint*/
@@ -1790,7 +1822,14 @@ background: -ms-linear-gradient(top, #1e5799 ,#2989d8 ,#207cca ,#7db9e8 );
17901822
"Using 0 should not result in a warning": function(){
17911823
var result = CSSLint.verify("h1 { left: 0; }", { "zero-units": 1 });
17921824
Assert.areEqual(0, result.messages.length);
1825+
},
1826+
1827+
"Using 0s for animation-duration should not result in a warning": function(){
1828+
var result = CSSLint.verify("h1 { animation-duration: 0s; }", { "zero-units": 1 });
1829+
Assert.areEqual(0, result.messages.length);
17931830
}
1831+
1832+
17941833
}));
17951834

17961835
})();

0 commit comments

Comments
 (0)