Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Release v0.9.2

  • Loading branch information...
commit f742a8c553c1f62e041594aa1a73f4dd95c24800 1 parent 6b135a8
@nzakas nzakas authored
View
7 CHANGELOG
@@ -1,3 +1,8 @@
+January 5, 2012 - v0.9.2
+
+* More validations fixes (fixes #219) (Nicholas C. Zakas)
+
+
January 4, 2012 - v0.9.1
* Updated parser to fix validation issues (fixes #219) (Nicholas C. Zakas)
@@ -220,3 +225,5 @@ June 15, 2011 - v0.1.0
+
+
View
23 release/csslint-node.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 4-January-2012 05:18:36 */
+/* Build time: 5-January-2012 09:26:45 */
/*!
Parser-Lib
@@ -46,7 +46,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
+/* Version v0.1.3, Build time: 5-January-2012 09:23:31 */
var parserlib = {};
(function(){
@@ -956,7 +956,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
+/* Version v0.1.3, Build time: 5-January-2012 09:23:31 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3475,8 +3475,8 @@ var Properties = {
"border-bottom-color" : "<color>",
"border-bottom-left-radius" : { single: "<x-one-radius>", complex: true },
"border-bottom-right-radius" : { single: "<x-one-radius>", complex: true },
- "border-bottom-style" : "border-style",
- "border-bottom-width" : "border-width",
+ "border-bottom-style" : "<border-style>",
+ "border-bottom-width" : "<border-width>",
"border-collapse" : "collapse | separate | inherit",
"border-color" : { multi: "<color> | inherit", max: 4 },
"border-image" : 1,
@@ -5942,6 +5942,7 @@ var Validation = {
//inset? && [ <length>{2,4} && <color>? ]
var result = false,
inset = false,
+ color = false,
count = 0,
part;
@@ -5954,6 +5955,14 @@ var Validation = {
inset = true;
}
+ if (part) {
+ if (this["<color>"](part)) {
+ expression.next();
+ part = expression.peek();
+ color = true;
+ }
+ }
+
while (part && this["<length>"](part) && count < 4) {
count++;
expression.next();
@@ -5962,7 +5971,7 @@ var Validation = {
if (part) {
- if (this["<color>"](part)) {
+ if (this["<color>"](part) && !color) {
expression.next();
part = expression.peek();
}
@@ -6169,7 +6178,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.1";
+ api.version = "0.9.2";
//-------------------------------------------------------------------------
// Rule Management
View
23 release/csslint-rhino.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 4-January-2012 05:18:36 */
+/* Build time: 5-January-2012 09:26:45 */
var CSSLint = (function(){
/*!
@@ -47,7 +47,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
+/* Version v0.1.3, Build time: 5-January-2012 09:23:31 */
var parserlib = {};
(function(){
@@ -957,7 +957,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
+/* Version v0.1.3, Build time: 5-January-2012 09:23:31 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3476,8 +3476,8 @@ var Properties = {
"border-bottom-color" : "<color>",
"border-bottom-left-radius" : { single: "<x-one-radius>", complex: true },
"border-bottom-right-radius" : { single: "<x-one-radius>", complex: true },
- "border-bottom-style" : "border-style",
- "border-bottom-width" : "border-width",
+ "border-bottom-style" : "<border-style>",
+ "border-bottom-width" : "<border-width>",
"border-collapse" : "collapse | separate | inherit",
"border-color" : { multi: "<color> | inherit", max: 4 },
"border-image" : 1,
@@ -5943,6 +5943,7 @@ var Validation = {
//inset? && [ <length>{2,4} && <color>? ]
var result = false,
inset = false,
+ color = false,
count = 0,
part;
@@ -5955,6 +5956,14 @@ var Validation = {
inset = true;
}
+ if (part) {
+ if (this["<color>"](part)) {
+ expression.next();
+ part = expression.peek();
+ color = true;
+ }
+ }
+
while (part && this["<length>"](part) && count < 4) {
count++;
expression.next();
@@ -5963,7 +5972,7 @@ var Validation = {
if (part) {
- if (this["<color>"](part)) {
+ if (this["<color>"](part) && !color) {
expression.next();
part = expression.peek();
}
@@ -6170,7 +6179,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.1";
+ api.version = "0.9.2";
//-------------------------------------------------------------------------
// Rule Management
View
23 release/csslint-worker.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 4-January-2012 05:18:36 */
+/* Build time: 5-January-2012 09:26:45 */
/*!
Parser-Lib
@@ -46,7 +46,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
+/* Version v0.1.3, Build time: 5-January-2012 09:23:31 */
var parserlib = {};
(function(){
@@ -956,7 +956,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
+/* Version v0.1.3, Build time: 5-January-2012 09:23:31 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3475,8 +3475,8 @@ var Properties = {
"border-bottom-color" : "<color>",
"border-bottom-left-radius" : { single: "<x-one-radius>", complex: true },
"border-bottom-right-radius" : { single: "<x-one-radius>", complex: true },
- "border-bottom-style" : "border-style",
- "border-bottom-width" : "border-width",
+ "border-bottom-style" : "<border-style>",
+ "border-bottom-width" : "<border-width>",
"border-collapse" : "collapse | separate | inherit",
"border-color" : { multi: "<color> | inherit", max: 4 },
"border-image" : 1,
@@ -5942,6 +5942,7 @@ var Validation = {
//inset? && [ <length>{2,4} && <color>? ]
var result = false,
inset = false,
+ color = false,
count = 0,
part;
@@ -5954,6 +5955,14 @@ var Validation = {
inset = true;
}
+ if (part) {
+ if (this["<color>"](part)) {
+ expression.next();
+ part = expression.peek();
+ color = true;
+ }
+ }
+
while (part && this["<length>"](part) && count < 4) {
count++;
expression.next();
@@ -5962,7 +5971,7 @@ var Validation = {
if (part) {
- if (this["<color>"](part)) {
+ if (this["<color>"](part) && !color) {
expression.next();
part = expression.peek();
}
@@ -6169,7 +6178,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.1";
+ api.version = "0.9.2";
//-------------------------------------------------------------------------
// Rule Management
View
23 release/csslint-wsh.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 4-January-2012 05:18:36 */
+/* Build time: 5-January-2012 09:26:45 */
var CSSLint = (function(){
/*!
@@ -47,7 +47,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
+/* Version v0.1.3, Build time: 5-January-2012 09:23:31 */
var parserlib = {};
(function(){
@@ -957,7 +957,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
+/* Version v0.1.3, Build time: 5-January-2012 09:23:31 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3476,8 +3476,8 @@ var Properties = {
"border-bottom-color" : "<color>",
"border-bottom-left-radius" : { single: "<x-one-radius>", complex: true },
"border-bottom-right-radius" : { single: "<x-one-radius>", complex: true },
- "border-bottom-style" : "border-style",
- "border-bottom-width" : "border-width",
+ "border-bottom-style" : "<border-style>",
+ "border-bottom-width" : "<border-width>",
"border-collapse" : "collapse | separate | inherit",
"border-color" : { multi: "<color> | inherit", max: 4 },
"border-image" : 1,
@@ -5943,6 +5943,7 @@ var Validation = {
//inset? && [ <length>{2,4} && <color>? ]
var result = false,
inset = false,
+ color = false,
count = 0,
part;
@@ -5955,6 +5956,14 @@ var Validation = {
inset = true;
}
+ if (part) {
+ if (this["<color>"](part)) {
+ expression.next();
+ part = expression.peek();
+ color = true;
+ }
+ }
+
while (part && this["<length>"](part) && count < 4) {
count++;
expression.next();
@@ -5963,7 +5972,7 @@ var Validation = {
if (part) {
- if (this["<color>"](part)) {
+ if (this["<color>"](part) && !color) {
expression.next();
part = expression.peek();
}
@@ -6170,7 +6179,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.1";
+ api.version = "0.9.2";
//-------------------------------------------------------------------------
// Rule Management
View
23 release/csslint.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 4-January-2012 05:18:36 */
+/* Build time: 5-January-2012 09:26:45 */
var CSSLint = (function(){
/*!
@@ -47,7 +47,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
+/* Version v0.1.3, Build time: 5-January-2012 09:23:31 */
var parserlib = {};
(function(){
@@ -957,7 +957,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
+/* Version v0.1.3, Build time: 5-January-2012 09:23:31 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3476,8 +3476,8 @@ var Properties = {
"border-bottom-color" : "<color>",
"border-bottom-left-radius" : { single: "<x-one-radius>", complex: true },
"border-bottom-right-radius" : { single: "<x-one-radius>", complex: true },
- "border-bottom-style" : "border-style",
- "border-bottom-width" : "border-width",
+ "border-bottom-style" : "<border-style>",
+ "border-bottom-width" : "<border-width>",
"border-collapse" : "collapse | separate | inherit",
"border-color" : { multi: "<color> | inherit", max: 4 },
"border-image" : 1,
@@ -5943,6 +5943,7 @@ var Validation = {
//inset? && [ <length>{2,4} && <color>? ]
var result = false,
inset = false,
+ color = false,
count = 0,
part;
@@ -5955,6 +5956,14 @@ var Validation = {
inset = true;
}
+ if (part) {
+ if (this["<color>"](part)) {
+ expression.next();
+ part = expression.peek();
+ color = true;
+ }
+ }
+
while (part && this["<length>"](part) && count < 4) {
count++;
expression.next();
@@ -5963,7 +5972,7 @@ var Validation = {
if (part) {
- if (this["<color>"](part)) {
+ if (this["<color>"](part) && !color) {
expression.next();
part = expression.peek();
}
@@ -6170,7 +6179,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.1";
+ api.version = "0.9.2";
//-------------------------------------------------------------------------
// Rule Management
View
2  release/npm/cli.js
@@ -1,5 +1,5 @@
#!/usr/bin/env node
-/* Build time: 4-January-2012 05:18:36 */
+/* Build time: 5-January-2012 09:26:45 */
/*
* Encapsulates all of the CLI functionality. The api argument simply
View
23 release/npm/lib/csslint-node.js
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 4-January-2012 05:18:36 */
+/* Build time: 5-January-2012 09:26:45 */
/*!
Parser-Lib
@@ -46,7 +46,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
+/* Version v0.1.3, Build time: 5-January-2012 09:23:31 */
var parserlib = {};
(function(){
@@ -956,7 +956,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.2, Build time: 4-January-2012 05:14:28 */
+/* Version v0.1.3, Build time: 5-January-2012 09:23:31 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3475,8 +3475,8 @@ var Properties = {
"border-bottom-color" : "<color>",
"border-bottom-left-radius" : { single: "<x-one-radius>", complex: true },
"border-bottom-right-radius" : { single: "<x-one-radius>", complex: true },
- "border-bottom-style" : "border-style",
- "border-bottom-width" : "border-width",
+ "border-bottom-style" : "<border-style>",
+ "border-bottom-width" : "<border-width>",
"border-collapse" : "collapse | separate | inherit",
"border-color" : { multi: "<color> | inherit", max: 4 },
"border-image" : 1,
@@ -5942,6 +5942,7 @@ var Validation = {
//inset? && [ <length>{2,4} && <color>? ]
var result = false,
inset = false,
+ color = false,
count = 0,
part;
@@ -5954,6 +5955,14 @@ var Validation = {
inset = true;
}
+ if (part) {
+ if (this["<color>"](part)) {
+ expression.next();
+ part = expression.peek();
+ color = true;
+ }
+ }
+
while (part && this["<length>"](part) && count < 4) {
count++;
expression.next();
@@ -5962,7 +5971,7 @@ var Validation = {
if (part) {
- if (this["<color>"](part)) {
+ if (this["<color>"](part) && !color) {
expression.next();
part = expression.peek();
}
@@ -6169,7 +6178,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.1";
+ api.version = "0.9.2";
//-------------------------------------------------------------------------
// Rule Management
View
2  release/npm/package.json
@@ -1,6 +1,6 @@
{
"name": "csslint",
- "version": "0.9.1",
+ "version": "0.9.2",
"description": "CSSLint",
"author": "Nicholas C. Zakas",
"os": ["darwin", "linux"],
Please sign in to comment.
Something went wrong with that request. Please try again.