Skip to content

Commit 83ed025

Browse files
author
Nicholas C. Zakas
committed
Final fixes for 0.3.0
1 parent ed86653 commit 83ed025

File tree

19 files changed

+54248
-10
lines changed

19 files changed

+54248
-10
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
Next (not yet released)
2+
* n/a
3+
4+
June 25, 2011 - v0.3.0
25

36
* Rhino and Node CLIs both exit with code 1 when there are errors (pull #72)
47
* Changed description of adjoining classes to be unsupported in IE6 (fixes #11)
@@ -11,6 +14,8 @@ Next (not yet released)
1114
* border:none with width/height is okay (fixes #45)
1215
* Updated web worker to accept JSON-encoded input
1316
* Allow turning on/off rules in web interface and CLIs (fixes #77)
17+
* Introduced release directory that will hold official release version
18+
* Build directory will be removed in next release
1419

1520
June 18, 2011 - v0.2.0
1621

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Even though you can define any group of properties together in a CSS rule, some
3636

3737
Removed the ignored or problematic properties decreases file size and improves performance.
3838

39-
### Avoid using to many !important declarations
39+
### Avoid using too many !important declarations
4040

4141
Using `!important` overides any cascaded rule and may lead to specificity war. CSSLint checks if you've used `!important`, and if so, displays a warning. If there's at least 10 `!important` declaration in your code CSSLint displays an error.
4242

@@ -103,6 +103,10 @@ CSS3 adds complex attribute selectors such as `~=` that are slow. When using att
103103

104104
Borders and padding add space outside of an element's content. Setting `width` or `height` along with borders and padding is usually a mistake because you won't get the visual result you're looking for. CSSLint warns when a rule uses `width` or `height` in addition to padding and/or border.
105105

106+
### Avoid @import
107+
108+
The `@import` command shouldn't be used because it prevent parallel downloads in some browsers (see http://www.stevesouders.com/blog/2009/04/09/dont-use-import/).
109+
106110
## Contributors
107111

108112
### Creators

build.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<project name="csslint" default="all">
22

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

66
<!-- the directories containing the source files -->
77
<property name="src.dir" value="./src" />
@@ -10,6 +10,7 @@
1010

1111
<!-- the directories and files to output to -->
1212
<property name="build.dir" value="./build" />
13+
<property name="release.dir" value="./release" />
1314
<property name="build.npm.dir" value="${build.dir}/npm" />
1415

1516
<!-- the directory containing library files -->
@@ -34,6 +35,7 @@
3435
<!-- clean -->
3536
<target name="clean">
3637
<delete dir="${build.dir}" />
38+
<delete dir="${release.dir}" />
3739
</target>
3840

3941
<!-- build the core library -->
@@ -120,8 +122,12 @@
120122

121123
<!-- Update version number in files -->
122124
<target name="release" depends="all">
125+
<mkdir dir="${release.dir}"/>
126+
<copy todir="${release.dir}">
127+
<fileset dir="${build.dir}" includes="**/*" />
128+
</copy>
123129
<replaceregexp match="@VERSION@" replace="${csslint.version}" flags="g" byline="true">
124-
<fileset dir="${build.dir}" includes="**/*.js"/>
130+
<fileset dir="${release.dir}" includes="**/*"/>
125131
</replaceregexp>
126132
</target>
127133

build/csslint-node.js

Lines changed: 33 additions & 1 deletion
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: 23-June-2011 03:44:41 */
24+
/* Build time: 25-June-2011 07:20:29 */
2525
/*!
2626
Parser-Lib
2727
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
@@ -10292,6 +10292,38 @@ CSSLint.addRule({
1029210292
}
1029310293

1029410294
});
10295+
/*
10296+
* Rule: Don't use text-indent for image replacement if you need to support rtl.
10297+
*
10298+
*/
10299+
/*
10300+
* Should we be checking for rtl/ltr?
10301+
*/
10302+
//Commented out due to lack of tests
10303+
/*CSSLint.addRule({
10304+
10305+
//rule information
10306+
id: "text-indent",
10307+
name: "Text Indent",
10308+
desc: "Checks for text indent less than -99px",
10309+
browsers: "All",
10310+
10311+
//initialization
10312+
init: function(parser, reporter){
10313+
var rule = this;
10314+
10315+
//check for use of "font-size"
10316+
parser.addListener("property", function(event){
10317+
var name = event.property,
10318+
value = event.value;
10319+
10320+
if (name == "text-indent" && value < -99){
10321+
reporter.warn("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set text-direction for that item to ltr.", name.line, name.col, rule);
10322+
}
10323+
});
10324+
}
10325+
10326+
});*/
1029510327
/*
1029610328
* Rule: Headings (h1-h6) should be defined only once.
1029710329
*/

build/csslint-rhino.js

Lines changed: 33 additions & 1 deletion
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: 23-June-2011 03:44:41 */
24+
/* Build time: 25-June-2011 07:20:29 */
2525
var CSSLint = (function(){
2626
/*!
2727
Parser-Lib
@@ -10293,6 +10293,38 @@ CSSLint.addRule({
1029310293
}
1029410294

1029510295
});
10296+
/*
10297+
* Rule: Don't use text-indent for image replacement if you need to support rtl.
10298+
*
10299+
*/
10300+
/*
10301+
* Should we be checking for rtl/ltr?
10302+
*/
10303+
//Commented out due to lack of tests
10304+
/*CSSLint.addRule({
10305+
10306+
//rule information
10307+
id: "text-indent",
10308+
name: "Text Indent",
10309+
desc: "Checks for text indent less than -99px",
10310+
browsers: "All",
10311+
10312+
//initialization
10313+
init: function(parser, reporter){
10314+
var rule = this;
10315+
10316+
//check for use of "font-size"
10317+
parser.addListener("property", function(event){
10318+
var name = event.property,
10319+
value = event.value;
10320+
10321+
if (name == "text-indent" && value < -99){
10322+
reporter.warn("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set text-direction for that item to ltr.", name.line, name.col, rule);
10323+
}
10324+
});
10325+
}
10326+
10327+
});*/
1029610328
/*
1029710329
* Rule: Headings (h1-h6) should be defined only once.
1029810330
*/

build/csslint-worker.js

Lines changed: 33 additions & 1 deletion
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: 23-June-2011 03:44:41 */
24+
/* Build time: 25-June-2011 07:20:29 */
2525
/*!
2626
Parser-Lib
2727
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
@@ -10292,6 +10292,38 @@ CSSLint.addRule({
1029210292
}
1029310293

1029410294
});
10295+
/*
10296+
* Rule: Don't use text-indent for image replacement if you need to support rtl.
10297+
*
10298+
*/
10299+
/*
10300+
* Should we be checking for rtl/ltr?
10301+
*/
10302+
//Commented out due to lack of tests
10303+
/*CSSLint.addRule({
10304+
10305+
//rule information
10306+
id: "text-indent",
10307+
name: "Text Indent",
10308+
desc: "Checks for text indent less than -99px",
10309+
browsers: "All",
10310+
10311+
//initialization
10312+
init: function(parser, reporter){
10313+
var rule = this;
10314+
10315+
//check for use of "font-size"
10316+
parser.addListener("property", function(event){
10317+
var name = event.property,
10318+
value = event.value;
10319+
10320+
if (name == "text-indent" && value < -99){
10321+
reporter.warn("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set text-direction for that item to ltr.", name.line, name.col, rule);
10322+
}
10323+
});
10324+
}
10325+
10326+
});*/
1029510327
/*
1029610328
* Rule: Headings (h1-h6) should be defined only once.
1029710329
*/

build/csslint.js

Lines changed: 33 additions & 1 deletion
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: 23-June-2011 03:44:41 */
24+
/* Build time: 25-June-2011 07:20:29 */
2525
var CSSLint = (function(){
2626
/*!
2727
Parser-Lib
@@ -10293,6 +10293,38 @@ CSSLint.addRule({
1029310293
}
1029410294

1029510295
});
10296+
/*
10297+
* Rule: Don't use text-indent for image replacement if you need to support rtl.
10298+
*
10299+
*/
10300+
/*
10301+
* Should we be checking for rtl/ltr?
10302+
*/
10303+
//Commented out due to lack of tests
10304+
/*CSSLint.addRule({
10305+
10306+
//rule information
10307+
id: "text-indent",
10308+
name: "Text Indent",
10309+
desc: "Checks for text indent less than -99px",
10310+
browsers: "All",
10311+
10312+
//initialization
10313+
init: function(parser, reporter){
10314+
var rule = this;
10315+
10316+
//check for use of "font-size"
10317+
parser.addListener("property", function(event){
10318+
var name = event.property,
10319+
value = event.value;
10320+
10321+
if (name == "text-indent" && value < -99){
10322+
reporter.warn("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set text-direction for that item to ltr.", name.line, name.col, rule);
10323+
}
10324+
});
10325+
}
10326+
10327+
});*/
1029610328
/*
1029710329
* Rule: Headings (h1-h6) should be defined only once.
1029810330
*/

build/npm/lib/csslint-node.js

Lines changed: 33 additions & 1 deletion
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: 23-June-2011 03:44:41 */
24+
/* Build time: 25-June-2011 07:20:29 */
2525
/*!
2626
Parser-Lib
2727
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
@@ -10292,6 +10292,38 @@ CSSLint.addRule({
1029210292
}
1029310293

1029410294
});
10295+
/*
10296+
* Rule: Don't use text-indent for image replacement if you need to support rtl.
10297+
*
10298+
*/
10299+
/*
10300+
* Should we be checking for rtl/ltr?
10301+
*/
10302+
//Commented out due to lack of tests
10303+
/*CSSLint.addRule({
10304+
10305+
//rule information
10306+
id: "text-indent",
10307+
name: "Text Indent",
10308+
desc: "Checks for text indent less than -99px",
10309+
browsers: "All",
10310+
10311+
//initialization
10312+
init: function(parser, reporter){
10313+
var rule = this;
10314+
10315+
//check for use of "font-size"
10316+
parser.addListener("property", function(event){
10317+
var name = event.property,
10318+
value = event.value;
10319+
10320+
if (name == "text-indent" && value < -99){
10321+
reporter.warn("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set text-direction for that item to ltr.", name.line, name.col, rule);
10322+
}
10323+
});
10324+
}
10325+
10326+
});*/
1029510327
/*
1029610328
* Rule: Headings (h1-h6) should be defined only once.
1029710329
*/

0 commit comments

Comments
 (0)