Permalink
Browse files

Update dist files.

  • Loading branch information...
1 parent 9d8713e commit a455fd3c16b06bfad62d78ab9fbaf95185558d16 @XhmikosR XhmikosR committed Dec 6, 2016
Showing with 535 additions and 79 deletions.
  1. +1 −1 dist/cli.js
  2. +2 −2 dist/csslint-node.js
  3. +133 −19 dist/csslint-rhino.js
  4. +133 −19 dist/csslint-worker.js
  5. +133 −19 dist/csslint-wsh.js
  6. +133 −19 dist/csslint.js
View
@@ -1,6 +1,6 @@
#!/usr/bin/env node
/*!
-CSSLint v1.0.3
+CSSLint v1.0.4
Copyright (c) 2016 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -1,5 +1,5 @@
/*!
-CSSLint v1.0.3
+CSSLint v1.0.4
Copyright (c) 2016 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -41,7 +41,7 @@ var CSSLint = (function() {
embeddedRuleset = /\/\*\s*csslint([^\*]*)\*\//,
api = new parserlib.util.EventTarget();
- api.version = "1.0.3";
+ api.version = "1.0.4";
//-------------------------------------------------------------------------
// Rule Management
View
@@ -1,5 +1,5 @@
/*!
-CSSLint v1.0.3
+CSSLint v1.0.4
Copyright (c) 2016 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -48,7 +48,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v1.0.0, Build time: 15-July-2016 12:36:10 */
+/* Version v1.1.0, Build time: 6-December-2016 10:31:29 */
var parserlib = (function () {
var require;
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
@@ -1266,6 +1266,8 @@ Parser.prototype = function() {
this._document();
} else if (tokenStream.peek() === Tokens.SUPPORTS_SYM) {
this._supports();
+ } else if (tokenStream.peek() === Tokens.MEDIA_SYM) {
+ this._media();
} else if (!this._ruleset()) {
break;
}
@@ -3300,6 +3302,7 @@ var Properties = module.exports = {
"align-items" : "flex-start | flex-end | center | baseline | stretch",
"align-content" : "flex-start | flex-end | center | space-between | space-around | stretch",
"align-self" : "auto | flex-start | flex-end | center | baseline | stretch",
+ "all" : "initial | inherit | unset",
"-webkit-align-items" : "flex-start | flex-end | center | baseline | stretch",
"-webkit-align-content" : "flex-start | flex-end | center | space-between | space-around | stretch",
"-webkit-align-self" : "auto | flex-start | flex-end | center | baseline | stretch",
@@ -3345,7 +3348,12 @@ var Properties = module.exports = {
"-o-animation-name" : "[ none | <single-animation-name> ]#",
"-o-animation-play-state" : "[ running | paused ]#",
- "appearance" : "icon | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal | none",
+ "appearance" : "none | auto",
+ "-moz-appearance" : "none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized",
+ "-ms-appearance" : "none | icon | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal",
+ "-webkit-appearance" : "none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | listbox | listitem | media-fullscreen-button | media-mute-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | push-button | radio | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical",
+ "-o-appearance" : "none | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal",
+
"azimuth" : "<azimuth>",
//B
@@ -3716,7 +3724,10 @@ var Properties = module.exports = {
"text-align" : "left | right | center | justify | match-parent | start | end",
"text-align-last" : 1,
"text-anchor" : "start | middle | end",
- "text-decoration" : "<text-decoration>",
+ "text-decoration" : "<text-decoration-line> || <text-decoration-style> || <text-decoration-color>",
+ "text-decoration-color" : "<text-decoration-color>",
+ "text-decoration-line" : "<text-decoration-line>",
+ "text-decoration-style" : "<text-decoration-style>",
"text-emphasis" : 1,
"text-height" : 1,
"text-indent" : "<length> | <percentage>",
@@ -4059,6 +4070,7 @@ function PropertyValuePart(text, line, col, optionalHint) {
case "deg":
case "rad":
case "grad":
+ case "turn":
this.type = "angle";
break;
@@ -5190,7 +5202,7 @@ TokenStream.prototype = mix(new TokenStreamBase(), {
if (/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^vmax$|^vmin$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(ident)) {
tt = Tokens.LENGTH;
- } else if (/^deg|^rad$|^grad$/i.test(ident)) {
+ } else if (/^deg|^rad$|^grad$|^turn$/i.test(ident)) {
tt = Tokens.ANGLE;
} else if (/^ms$|^s$/i.test(ident)) {
tt = Tokens.TIME;
@@ -5575,7 +5587,6 @@ TokenStream.prototype = mix(new TokenStreamBase(), {
}
});
-
},{"../util/TokenStreamBase":27,"./PropertyValuePart":11,"./Tokens":18}],18:[function(require,module,exports){
"use strict";
@@ -6333,9 +6344,15 @@ copy(ValidationTypes, {
Matcher.many([true /* length is required */],
Matcher.cast("<length>").braces(2, 4), "inset", "<color>"),
- "<text-decoration>":
+ "<text-decoration-color>":
+ "<color>",
+
+ "<text-decoration-line>":
"none | [ underline || overline || line-through || blink ]",
+ "<text-decoration-style>":
+ "solid | double | dotted | dashed | wavy",
+
"<will-change>":
"auto | <animateable-feature>#",
@@ -7315,6 +7332,29 @@ return require('parserlib');
var clone = (function() {
'use strict';
+var nativeMap;
+try {
+ nativeMap = Map;
+} catch(_) {
+ // maybe a reference error because no `Map`. Give it a dummy value that no
+ // value will ever be an instanceof.
+ nativeMap = function() {};
+}
+
+var nativeSet;
+try {
+ nativeSet = Set;
+} catch(_) {
+ nativeSet = function() {};
+}
+
+var nativePromise;
+try {
+ nativePromise = Promise;
+} catch(_) {
+ nativePromise = function() {};
+}
+
/**
* Clones (copies) an Object using deep copying.
*
@@ -7332,14 +7372,16 @@ var clone = (function() {
* a particular depth. (optional - defaults to Infinity)
* @param `prototype` - sets the prototype to be used when cloning an object.
* (optional - defaults to parent prototype).
+ * @param `includeNonEnumerable` - set to true if the non-enumerable properties
+ * should be cloned as well. Non-enumerable properties on the prototype
+ * chain will be ignored. (optional - false by default)
*/
-function clone(parent, circular, depth, prototype) {
- var filter;
+function clone(parent, circular, depth, prototype, includeNonEnumerable) {
if (typeof circular === 'object') {
depth = circular.depth;
prototype = circular.prototype;
- filter = circular.filter;
- circular = circular.circular
+ includeNonEnumerable = circular.includeNonEnumerable;
+ circular = circular.circular;
}
// maintain two arrays for circular references, where corresponding parents
// and children have the same index
@@ -7360,7 +7402,7 @@ function clone(parent, circular, depth, prototype) {
if (parent === null)
return null;
- if (depth == 0)
+ if (depth === 0)
return parent;
var child;
@@ -7369,7 +7411,19 @@ function clone(parent, circular, depth, prototype) {
return parent;
}
- if (clone.__isArray(parent)) {
+ if (parent instanceof nativeMap) {
+ child = new nativeMap();
+ } else if (parent instanceof nativeSet) {
+ child = new nativeSet();
+ } else if (parent instanceof nativePromise) {
+ child = new nativePromise(function (resolve, reject) {
+ parent.then(function(value) {
+ resolve(_clone(value, depth - 1));
+ }, function(err) {
+ reject(_clone(err, depth - 1));
+ });
+ });
+ } else if (clone.__isArray(parent)) {
child = [];
} else if (clone.__isRegExp(parent)) {
child = new RegExp(parent.source, __getRegExpFlags(parent));
@@ -7380,6 +7434,8 @@ function clone(parent, circular, depth, prototype) {
child = new Buffer(parent.length);
parent.copy(child);
return child;
+ } else if (parent instanceof Error) {
+ child = Object.create(parent);
} else {
if (typeof prototype == 'undefined') {
proto = Object.getPrototypeOf(parent);
@@ -7401,6 +7457,30 @@ function clone(parent, circular, depth, prototype) {
allChildren.push(child);
}
+ if (parent instanceof nativeMap) {
+ var keyIterator = parent.keys();
+ while(true) {
+ var next = keyIterator.next();
+ if (next.done) {
+ break;
+ }
+ var keyChild = _clone(next.value, depth - 1);
+ var valueChild = _clone(parent.get(next.value), depth - 1);
+ child.set(keyChild, valueChild);
+ }
+ }
+ if (parent instanceof nativeSet) {
+ var iterator = parent.keys();
+ while(true) {
+ var next = iterator.next();
+ if (next.done) {
+ break;
+ }
+ var entryChild = _clone(next.value, depth - 1);
+ child.add(entryChild);
+ }
+ }
+
for (var i in parent) {
var attrs;
if (proto) {
@@ -7413,6 +7493,40 @@ function clone(parent, circular, depth, prototype) {
child[i] = _clone(parent[i], depth - 1);
}
+ if (Object.getOwnPropertySymbols) {
+ var symbols = Object.getOwnPropertySymbols(parent);
+ for (var i = 0; i < symbols.length; i++) {
+ // Don't need to worry about cloning a symbol because it is a primitive,
+ // like a number or string.
+ var symbol = symbols[i];
+ var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
+ if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
+ continue;
+ }
+ child[symbol] = _clone(parent[symbol], depth - 1);
+ if (!descriptor.enumerable) {
+ Object.defineProperty(child, symbol, {
+ enumerable: false
+ });
+ }
+ }
+ }
+
+ if (includeNonEnumerable) {
+ var allPropertyNames = Object.getOwnPropertyNames(parent);
+ for (var i = 0; i < allPropertyNames.length; i++) {
+ var propertyName = allPropertyNames[i];
+ var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
+ if (descriptor && descriptor.enumerable) {
+ continue;
+ }
+ child[propertyName] = _clone(parent[propertyName], depth - 1);
+ Object.defineProperty(child, propertyName, {
+ enumerable: false
+ });
+ }
+ }
+
return child;
}
@@ -7439,22 +7553,22 @@ clone.clonePrototype = function clonePrototype(parent) {
function __objToStr(o) {
return Object.prototype.toString.call(o);
-};
+}
clone.__objToStr = __objToStr;
function __isDate(o) {
return typeof o === 'object' && __objToStr(o) === '[object Date]';
-};
+}
clone.__isDate = __isDate;
function __isArray(o) {
return typeof o === 'object' && __objToStr(o) === '[object Array]';
-};
+}
clone.__isArray = __isArray;
function __isRegExp(o) {
return typeof o === 'object' && __objToStr(o) === '[object RegExp]';
-};
+}
clone.__isRegExp = __isRegExp;
function __getRegExpFlags(re) {
@@ -7463,7 +7577,7 @@ function __getRegExpFlags(re) {
if (re.ignoreCase) flags += 'i';
if (re.multiline) flags += 'm';
return flags;
-};
+}
clone.__getRegExpFlags = __getRegExpFlags;
return clone;
@@ -7491,7 +7605,7 @@ var CSSLint = (function() {
embeddedRuleset = /\/\*\s*csslint([^\*]*)\*\//,
api = new parserlib.util.EventTarget();
- api.version = "1.0.3";
+ api.version = "1.0.4";
//-------------------------------------------------------------------------
// Rule Management
Oops, something went wrong.

0 comments on commit a455fd3

Please sign in to comment.