Permalink
Browse files

Ensure 'ch' is identifier as a length

  • Loading branch information...
1 parent 375d726 commit c0fce79c24e754de00b3e99824f32c2d4871a145 @nzakas nzakas committed Mar 2, 2012
View
@@ -21,11 +21,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v@VERSION@, Build time: 10-February-2012 12:59:26 */
+/* Version v@VERSION@, Build time: 2-March-2012 02:36:35 */
var parserlib = {};
(function(){
-
/**
* A generic base to inherit from for any object
* that needs event handling.
@@ -896,8 +895,6 @@ TokenStreamBase.prototype = {
};
-
-
parserlib.util = {
StringReader: StringReader,
SyntaxError : SyntaxError,
@@ -906,8 +903,6 @@ EventTarget : EventTarget,
TokenStreamBase : TokenStreamBase
};
})();
-
-
/*
Parser-Lib
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
@@ -931,15 +926,14 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v@VERSION@, Build time: 10-February-2012 12:59:26 */
+/* Version v@VERSION@, Build time: 2-March-2012 02:36:35 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
StringReader = parserlib.util.StringReader,
SyntaxError = parserlib.util.SyntaxError,
SyntaxUnit = parserlib.util.SyntaxUnit;
-
var Colors = {
aliceblue :"#f0f8ff",
antiquewhite :"#faebd7",
@@ -1120,7 +1114,6 @@ function Combinator(text, line, col){
Combinator.prototype = new SyntaxUnit();
Combinator.prototype.constructor = Combinator;
-
/*global SyntaxUnit, Parser*/
/**
* Represents a media feature, such as max-width:500.
@@ -1153,7 +1146,6 @@ function MediaFeature(name, value){
MediaFeature.prototype = new SyntaxUnit();
MediaFeature.prototype.constructor = MediaFeature;
-
/*global SyntaxUnit, Parser*/
/**
* Represents an individual media query.
@@ -1197,7 +1189,6 @@ function MediaQuery(modifier, mediaType, features, line, col){
MediaQuery.prototype = new SyntaxUnit();
MediaQuery.prototype.constructor = MediaQuery;
-
/*global Tokens, TokenStream, SyntaxError, Properties, Validation, ValidationError, SyntaxUnit,
PropertyValue, PropertyValuePart, SelectorPart, SelectorSubPart, Selector,
PropertyName, Combinator, MediaFeature, MediaQuery, EventTarget */
@@ -3919,7 +3910,6 @@ PropertyName.prototype.constructor = PropertyName;
PropertyName.prototype.toString = function(){
return (this.hack ? this.hack : "") + this.text;
};
-
/*global SyntaxUnit, Parser*/
/**
* Represents a single part of a CSS property value, meaning that it represents
@@ -3949,7 +3939,6 @@ function PropertyValue(parts, line, col){
PropertyValue.prototype = new SyntaxUnit();
PropertyValue.prototype.constructor = PropertyValue;
-
/*global SyntaxUnit, Parser*/
/**
* A utility class that allows for easy iteration over the various parts of a
@@ -4075,7 +4064,6 @@ PropertyValueIterator.prototype.restore = function(){
}
};
-
/*global SyntaxUnit, Parser, Colors*/
/**
* Represents a single part of a CSS property value, meaning that it represents
@@ -4121,6 +4109,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
+ case "ch":
this.type = "length";
break;
@@ -4296,7 +4285,6 @@ function Selector(parts, line, col){
Selector.prototype = new SyntaxUnit();
Selector.prototype.constructor = Selector;
-
/*global SyntaxUnit, Parser*/
/**
* Represents a single part of a selector string, meaning a single set of
@@ -4339,7 +4327,6 @@ function SelectorPart(elementName, modifiers, text, line, col){
SelectorPart.prototype = new SyntaxUnit();
SelectorPart.prototype.constructor = SelectorPart;
-
/*global SyntaxUnit, Parser*/
/**
* Represents a selector modifier string, meaning a class name, element name,
@@ -4376,7 +4363,6 @@ function SelectorSubPart(text, type, line, col){
SelectorSubPart.prototype = new SyntaxUnit();
SelectorSubPart.prototype.constructor = SelectorSubPart;
-
/*global Pseudos, SelectorPart*/
/**
* Represents a selector's specificity.
@@ -4500,7 +4486,6 @@ Specificity.calculate = function(selector){
return new Specificity(0, b, c, d);
};
-
/*global Tokens, TokenStreamBase*/
var h = /^[0-9a-fA-F]$/,
@@ -5501,7 +5486,6 @@ TokenStream.prototype = mix(new TokenStreamBase(), {
}
});
-
var Tokens = [
/*
@@ -5709,7 +5693,6 @@ var Tokens = [
-
//This file will likely change a lot! Very experimental!
/*global Properties, ValidationTypes, ValidationError, PropertyValueIterator */
var Validation = {
@@ -6244,7 +6227,6 @@ var ValidationTypes = {
}
};
-
parserlib.css = {
Colors :Colors,
Combinator :Combinator,
@@ -6264,12 +6246,8 @@ ValidationError :ValidationError
};
})();
-
-
-
(function(){
for(var prop in parserlib){
exports[prop] = parserlib[prop];
}
})();
-
@@ -21,11 +21,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v@VERSION@, Build time: 10-February-2012 12:59:26 */
+/* Version v@VERSION@, Build time: 2-March-2012 02:36:35 */
var parserlib = {};
(function(){
-
/**
* A generic base to inherit from for any object
* that needs event handling.
@@ -896,8 +895,6 @@ TokenStreamBase.prototype = {
};
-
-
parserlib.util = {
StringReader: StringReader,
SyntaxError : SyntaxError,
@@ -906,8 +903,6 @@ EventTarget : EventTarget,
TokenStreamBase : TokenStreamBase
};
})();
-
-
/*
Parser-Lib
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
@@ -931,15 +926,14 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v@VERSION@, Build time: 10-February-2012 12:59:26 */
+/* Version v@VERSION@, Build time: 2-March-2012 02:36:35 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
StringReader = parserlib.util.StringReader,
SyntaxError = parserlib.util.SyntaxError,
SyntaxUnit = parserlib.util.SyntaxUnit;
-
var Colors = {
aliceblue :"#f0f8ff",
antiquewhite :"#faebd7",
@@ -1120,7 +1114,6 @@ function Combinator(text, line, col){
Combinator.prototype = new SyntaxUnit();
Combinator.prototype.constructor = Combinator;
-
/*global SyntaxUnit, Parser*/
/**
* Represents a media feature, such as max-width:500.
@@ -1153,7 +1146,6 @@ function MediaFeature(name, value){
MediaFeature.prototype = new SyntaxUnit();
MediaFeature.prototype.constructor = MediaFeature;
-
/*global SyntaxUnit, Parser*/
/**
* Represents an individual media query.
@@ -1197,7 +1189,6 @@ function MediaQuery(modifier, mediaType, features, line, col){
MediaQuery.prototype = new SyntaxUnit();
MediaQuery.prototype.constructor = MediaQuery;
-
/*global Tokens, TokenStream, SyntaxError, Properties, Validation, ValidationError, SyntaxUnit,
PropertyValue, PropertyValuePart, SelectorPart, SelectorSubPart, Selector,
PropertyName, Combinator, MediaFeature, MediaQuery, EventTarget */
@@ -3919,7 +3910,6 @@ PropertyName.prototype.constructor = PropertyName;
PropertyName.prototype.toString = function(){
return (this.hack ? this.hack : "") + this.text;
};
-
/*global SyntaxUnit, Parser*/
/**
* Represents a single part of a CSS property value, meaning that it represents
@@ -3949,7 +3939,6 @@ function PropertyValue(parts, line, col){
PropertyValue.prototype = new SyntaxUnit();
PropertyValue.prototype.constructor = PropertyValue;
-
/*global SyntaxUnit, Parser*/
/**
* A utility class that allows for easy iteration over the various parts of a
@@ -4075,7 +4064,6 @@ PropertyValueIterator.prototype.restore = function(){
}
};
-
/*global SyntaxUnit, Parser, Colors*/
/**
* Represents a single part of a CSS property value, meaning that it represents
@@ -4121,6 +4109,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
+ case "ch":
this.type = "length";
break;
@@ -4296,7 +4285,6 @@ function Selector(parts, line, col){
Selector.prototype = new SyntaxUnit();
Selector.prototype.constructor = Selector;
-
/*global SyntaxUnit, Parser*/
/**
* Represents a single part of a selector string, meaning a single set of
@@ -4339,7 +4327,6 @@ function SelectorPart(elementName, modifiers, text, line, col){
SelectorPart.prototype = new SyntaxUnit();
SelectorPart.prototype.constructor = SelectorPart;
-
/*global SyntaxUnit, Parser*/
/**
* Represents a selector modifier string, meaning a class name, element name,
@@ -4376,7 +4363,6 @@ function SelectorSubPart(text, type, line, col){
SelectorSubPart.prototype = new SyntaxUnit();
SelectorSubPart.prototype.constructor = SelectorSubPart;
-
/*global Pseudos, SelectorPart*/
/**
* Represents a selector's specificity.
@@ -4500,7 +4486,6 @@ Specificity.calculate = function(selector){
return new Specificity(0, b, c, d);
};
-
/*global Tokens, TokenStreamBase*/
var h = /^[0-9a-fA-F]$/,
@@ -5501,7 +5486,6 @@ TokenStream.prototype = mix(new TokenStreamBase(), {
}
});
-
var Tokens = [
/*
@@ -5709,7 +5693,6 @@ var Tokens = [
-
//This file will likely change a lot! Very experimental!
/*global Properties, ValidationTypes, ValidationError, PropertyValueIterator */
var Validation = {
@@ -6244,7 +6227,6 @@ var ValidationTypes = {
}
};
-
parserlib.css = {
Colors :Colors,
Combinator :Combinator,
@@ -6264,12 +6246,8 @@ ValidationError :ValidationError
};
})();
-
-
-
(function(){
for(var prop in parserlib){
exports[prop] = parserlib[prop];
}
})();
-
View
@@ -21,11 +21,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v@VERSION@, Build time: 10-February-2012 12:59:26 */
+/* Version v@VERSION@, Build time: 2-March-2012 02:36:35 */
var parserlib = {};
(function(){
-
/**
* A generic base to inherit from for any object
* that needs event handling.
@@ -896,8 +895,6 @@ TokenStreamBase.prototype = {
};
-
-
parserlib.util = {
StringReader: StringReader,
SyntaxError : SyntaxError,
@@ -906,4 +903,3 @@ EventTarget : EventTarget,
TokenStreamBase : TokenStreamBase
};
})();
-
Oops, something went wrong.

0 comments on commit c0fce79

Please sign in to comment.