Skip to content

Commit 12397f0

Browse files
committed
Release v0.9.6
1 parent 641c52a commit 12397f0

File tree

9 files changed

+34
-21
lines changed

9 files changed

+34
-21
lines changed

CHANGELOG

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
February 10, 2012 - v0.9.6
2+
3+
* Make sure line numbers are correct for vendor-prefix rule (fixes #238) (Nicholas C. Zakas)
4+
* fix line and column numbers for compatible vendor prefixes rule (fixes #236) (Nicholas C. Zakas)
5+
* Fixed JavaScript compatibility issues in several places. Everything now works in IE < 9. (Nicholas C. Zakas)
6+
* Updated parser (fixes #234) (Nicholas C. Zakas)
17

28
February 3, 2012 - v0.9.5
39

@@ -239,6 +245,8 @@ June 15, 2011 - v0.1.0
239245

240246

241247

248+
249+
242250

243251

244252

release/csslint-node.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 10-February-2012 02:23:58 */
24+
/* Build time: 10-February-2012 02:34:15 */
2525

2626
/*!
2727
Parser-Lib
@@ -8597,11 +8597,11 @@ CSSLint.addRule({
85978597
actual = needsStandard[i].actual;
85988598

85998599
if (!properties[needed]){
8600-
reporter.report("Missing standard property '" + needed + "' to go along with '" + actual + "'.", event.line, event.col, rule);
8600+
reporter.report("Missing standard property '" + needed + "' to go along with '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
86018601
} else {
86028602
//make sure standard property is last
86038603
if (properties[needed][0].pos < properties[actual][0].pos){
8604-
reporter.report("Standard property '" + needed + "' should come after vendor-prefixed property '" + actual + "'.", event.line, event.col, rule);
8604+
reporter.report("Standard property '" + needed + "' should come after vendor-prefixed property '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
86058605
}
86068606
}
86078607
}

release/csslint-rhino.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 10-February-2012 02:23:58 */
24+
/* Build time: 10-February-2012 02:34:15 */
2525
var CSSLint = (function(){
2626

2727
/*!
@@ -8598,11 +8598,11 @@ CSSLint.addRule({
85988598
actual = needsStandard[i].actual;
85998599

86008600
if (!properties[needed]){
8601-
reporter.report("Missing standard property '" + needed + "' to go along with '" + actual + "'.", event.line, event.col, rule);
8601+
reporter.report("Missing standard property '" + needed + "' to go along with '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
86028602
} else {
86038603
//make sure standard property is last
86048604
if (properties[needed][0].pos < properties[actual][0].pos){
8605-
reporter.report("Standard property '" + needed + "' should come after vendor-prefixed property '" + actual + "'.", event.line, event.col, rule);
8605+
reporter.report("Standard property '" + needed + "' should come after vendor-prefixed property '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
86068606
}
86078607
}
86088608
}

release/csslint-tests.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,10 +1734,12 @@ background: -ms-linear-gradient(top, #1e5799 ,#2989d8 ,#207cca ,#7db9e8 );
17341734
name: "Vendor Prefix Errors",
17351735

17361736
"Using -moz-border-radius without border-radius should result in one warning": function(){
1737-
var result = CSSLint.verify("h1 { -moz-border-radius: 5px; }", { "vendor-prefix": 1 });
1737+
var result = CSSLint.verify("h1 {\n -moz-border-radius: 5px; \n}", { "vendor-prefix": 1 });
17381738
Assert.areEqual(1, result.messages.length);
17391739
Assert.areEqual("warning", result.messages[0].type);
17401740
Assert.areEqual("Missing standard property 'border-radius' to go along with '-moz-border-radius'.", result.messages[0].message);
1741+
Assert.areEqual(2, result.messages[0].line);
1742+
Assert.areEqual(5, result.messages[0].col);
17411743
},
17421744

17431745
"Using -webkit-border-radius without border-radius should result in one warning": function(){
@@ -1755,10 +1757,13 @@ background: -ms-linear-gradient(top, #1e5799 ,#2989d8 ,#207cca ,#7db9e8 );
17551757
},
17561758

17571759
"Using -moz-border-radius after border-radius should result in one warning": function(){
1758-
var result = CSSLint.verify("h1 { border-radius: 5px; -moz-border-radius: 5px; }", { "vendor-prefix": 1 });
1760+
var result = CSSLint.verify("h1 { \nborder-radius: 5px; \n -moz-border-radius: 5px; }", { "vendor-prefix": 1 });
17591761
Assert.areEqual(1, result.messages.length);
17601762
Assert.areEqual("warning", result.messages[0].type);
17611763
Assert.areEqual("Standard property 'border-radius' should come after vendor-prefixed property '-moz-border-radius'.", result.messages[0].message);
1764+
Assert.areEqual(3, result.messages[0].line);
1765+
Assert.areEqual(5, result.messages[0].col);
1766+
17621767
},
17631768

17641769
"Using -webkit-border-bottom-left-radius with border-bottom-left-radius should not result in a warning.": function(){

release/csslint-worker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 10-February-2012 02:23:58 */
24+
/* Build time: 10-February-2012 02:34:15 */
2525

2626
/*!
2727
Parser-Lib
@@ -8597,11 +8597,11 @@ CSSLint.addRule({
85978597
actual = needsStandard[i].actual;
85988598

85998599
if (!properties[needed]){
8600-
reporter.report("Missing standard property '" + needed + "' to go along with '" + actual + "'.", event.line, event.col, rule);
8600+
reporter.report("Missing standard property '" + needed + "' to go along with '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
86018601
} else {
86028602
//make sure standard property is last
86038603
if (properties[needed][0].pos < properties[actual][0].pos){
8604-
reporter.report("Standard property '" + needed + "' should come after vendor-prefixed property '" + actual + "'.", event.line, event.col, rule);
8604+
reporter.report("Standard property '" + needed + "' should come after vendor-prefixed property '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
86058605
}
86068606
}
86078607
}

release/csslint-wsh.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 10-February-2012 02:23:58 */
24+
/* Build time: 10-February-2012 02:34:15 */
2525
var CSSLint = (function(){
2626

2727
/*!
@@ -8598,11 +8598,11 @@ CSSLint.addRule({
85988598
actual = needsStandard[i].actual;
85998599

86008600
if (!properties[needed]){
8601-
reporter.report("Missing standard property '" + needed + "' to go along with '" + actual + "'.", event.line, event.col, rule);
8601+
reporter.report("Missing standard property '" + needed + "' to go along with '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
86028602
} else {
86038603
//make sure standard property is last
86048604
if (properties[needed][0].pos < properties[actual][0].pos){
8605-
reporter.report("Standard property '" + needed + "' should come after vendor-prefixed property '" + actual + "'.", event.line, event.col, rule);
8605+
reporter.report("Standard property '" + needed + "' should come after vendor-prefixed property '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
86068606
}
86078607
}
86088608
}

release/csslint.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 10-February-2012 02:23:58 */
24+
/* Build time: 10-February-2012 02:34:15 */
2525
var CSSLint = (function(){
2626

2727
/*!
@@ -8598,11 +8598,11 @@ CSSLint.addRule({
85988598
actual = needsStandard[i].actual;
85998599

86008600
if (!properties[needed]){
8601-
reporter.report("Missing standard property '" + needed + "' to go along with '" + actual + "'.", event.line, event.col, rule);
8601+
reporter.report("Missing standard property '" + needed + "' to go along with '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
86028602
} else {
86038603
//make sure standard property is last
86048604
if (properties[needed][0].pos < properties[actual][0].pos){
8605-
reporter.report("Standard property '" + needed + "' should come after vendor-prefixed property '" + actual + "'.", event.line, event.col, rule);
8605+
reporter.report("Standard property '" + needed + "' should come after vendor-prefixed property '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
86068606
}
86078607
}
86088608
}

release/npm/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env node
2-
/* Build time: 10-February-2012 02:23:58 */
2+
/* Build time: 10-February-2012 02:34:15 */
33

44
/*
55
* Encapsulates all of the CLI functionality. The api argument simply

release/npm/lib/csslint-node.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
2222
2323
*/
24-
/* Build time: 10-February-2012 02:23:58 */
24+
/* Build time: 10-February-2012 02:34:15 */
2525

2626
/*!
2727
Parser-Lib
@@ -8597,11 +8597,11 @@ CSSLint.addRule({
85978597
actual = needsStandard[i].actual;
85988598

85998599
if (!properties[needed]){
8600-
reporter.report("Missing standard property '" + needed + "' to go along with '" + actual + "'.", event.line, event.col, rule);
8600+
reporter.report("Missing standard property '" + needed + "' to go along with '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
86018601
} else {
86028602
//make sure standard property is last
86038603
if (properties[needed][0].pos < properties[actual][0].pos){
8604-
reporter.report("Standard property '" + needed + "' should come after vendor-prefixed property '" + actual + "'.", event.line, event.col, rule);
8604+
reporter.report("Standard property '" + needed + "' should come after vendor-prefixed property '" + actual + "'.", properties[actual][0].name.line, properties[actual][0].name.col, rule);
86058605
}
86068606
}
86078607
}

0 commit comments

Comments
 (0)