Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: CSSLint/parser-lib
base: 4c2d521da0
...
head fork: CSSLint/parser-lib
compare: master
Commits on Aug 23, 2012
@mirceapiturca mirceapiturca Update build/node-parserlib.js
MediaQuery mediaType and features needs to be joined trough "and".
Not a big issue but window.matchMedia reports the MediaQuery .text as invalid 
74592d6
Commits on Aug 24, 2012
@mirceapiturca mirceapiturca Update src/css/MediaQuery.js
MediaQuery mediaType and features needs to be joined trough "and".
For example parsing "only screen and (min-width:450px) and (max-width:1950px)", the text output will be
"only screen (min-width:450px) and (max-width:1950px)".
It is parsed right but the new text string will be invalid if matched with window.matchMedia.
081dddb
Commits on Sep 12, 2012
@mirceapiturca mirceapiturca Update tests/css/Parser.js
Added test for MediaQuery.text.
a66dfbd
Commits on Nov 14, 2012
@fracmak fracmak added support for calc wherever <length> is expected 1845473
@fracmak fracmak added support for + operator for calc functions e0be226
@fracmak fracmak _operator is used for seperating multiple values for a property (ie. …
…box-shadow: 10px 10px 0, 2px 2px 0) as well as for mathematical operators inside functions. Since functions are the only place mathematical operators are allowed, we now pass in a boolean to distinguish which token is acceptable to not accidentally treat -10px -10px as an equation
ebf3f4a
Commits on Nov 16, 2012
@nzakas nzakas Merge pull request #30 from mirceapiturca/master
MediaQuery.text minor bug
172a2b2
@nzakas nzakas Fixed media query tests c476289
@nzakas nzakas Add travis build status to readme a2aed01
@nzakas nzakas Merge pull request #35 from fracmak/calc_support
added support for calc wherever <length> is expected
8ca2d38
@nzakas nzakas Fix readme a46e34d
@nzakas nzakas Merge branch 'master' of github.com:nzakas/parser-lib c33c670
Commits on Nov 20, 2012
@nschonni nschonni Add CSS2 system colors 126c692
@nzakas nzakas Merge pull request #40 from nschonni/fix-#38-CSS2-system-colors
Add CSS2 system colors #38
a9c6f1b
@nschonni nschonni Add test for underscore hack
Additional validation in star hack
aef2bec
@nschonni nschonni Add white-space vendor prefixed values 5acd9b2
Commits on Nov 21, 2012
@nzakas nzakas Merge pull request #41 from nschonni/more-hack-tests
Add test for underscore hack
54e11e1
@nzakas nzakas Merge pull request #42 from nschonni/white-space-vendor-prefixes
Add white-space vendor prefixed values
ff0e720
@nschonni nschonni Add missing values from CSS3 vertical-align 83ae904
@nzakas nzakas Merge pull request #46 from nschonni/fix-vertical-align-missing-values
Add missing values from CSS3 vertical-align
a028647
Commits on Dec 04, 2012
@nzakas nzakas Release 0.2.1 8cfc5a0
Commits on Dec 29, 2012
@nschonni nschonni Remove build folder and exclude it
These files were causing alot  of diff noise with the timestamps.
Discussed in #45
12a38c0
Commits on Dec 31, 2012
@nschonni nschonni Trim default gitconfig c884b43
@nzakas nzakas Merge pull request #51 from nschonni/add-gitignore-for-build
Remove build folder and exclude it
5f5743c
Commits on Jan 02, 2013
@nschonni nschonni Add -moz display properties abc4320
Commits on Jan 07, 2013
@nzakas nzakas Merge pull request #43 from nschonni/display-moz-inline-stack
Add Mozilla vendor prefixed display values
1c8ac5a
Commits on Jan 11, 2013
@nschonni nschonni Add none to appearance values
Mozilla and WebKit use none as a reset value
f0c119a
@nschonni nschonni Allow pixel ratios in media queries
Repackaging #23 because of
conflicts
cfd17de
@nzakas nzakas Merge pull request #56 from nschonni/appearance-none
Add none to appearance values
7fdb666
@nzakas nzakas Merge pull request #57 from nschonni/allow-device-pixel-ratio-gh-23
Allow pixel ratios in media queries
8be1864
Commits on Jan 17, 2013
@nzakas nzakas Official release fba219c
Commits on Feb 13, 2013
@nschonni nschonni Support inherit for border-radius short and long hand 30dea0e
Commits on Feb 24, 2013
@cistov cistov Test hooks & keyword data for npm eedefe2
@nzakas nzakas Merge pull request #63 from cistov/npm
Test hooks & keyword data for npm
a4d84ed
@nschonni nschonni Move docs content to README 68bd77f
Commits on Mar 09, 2013
@nzakas nzakas Merge pull request #64 from nschonni/merge-docs-and-readme
Move docs content to README
3ddd74b
@nzakas nzakas Merge pull request #62 from nschonni/add-border-inherit-gh-61
Support inherit for border-radius short and long hand
5de9396
@jklein jklein Adding support for the @viewport rule along with some tests for it (i…
…ssue #59)
7e3e523
@jklein jklein Adding some tests for the viewport start and end events, and fixing t…
…wo other existing tests that were broken
00c6859
@nzakas nzakas Merge branch 'master' of github.com:nzakas/parser-lib f549d14
@nschonni nschonni GHFM for README code blocks and titles
Also deleted the old section from the top that was carried over from the old readme
fc1220e
Commits on Mar 10, 2013
@nzakas nzakas Merge pull request #66 from nschonni/patch-1
GHFM for README code blocks and titles
46dddd5
Commits on Mar 27, 2013
@TooBug TooBug add '-webkit-box' and '-webkit-inline-box'
add '-webkit-box' and '-webkit-inline-box' of 'display'
c1ea835
@TooBug TooBug add tests for 'display' 16f2af0
Commits on Mar 28, 2013
@TooBug TooBug fix spelling. 8b01682
@nzakas nzakas Merge pull request #68 from TooooBug/master
add '-webkit-box' and '-webkit-inline-box' of 'dislay'
a59bee7
Commits on Apr 12, 2013
@nschonni nschonni Fix display validation test
- Remove leading space.
- Typo "inine" to "inline"
84a77cd
Commits on Apr 16, 2013
@nzakas nzakas Merge pull request #70 from nschonni/fix-failing-test-from-68
Fix display validation test
49f6d68
Commits on May 08, 2013
@nschonni nschonni Add inherit as value for border-bottom-color
Added additional tests to prevent a regression
Fixes #71
01b084a
@nschonni nschonni CI tests on Node 0.6+ stable versions 7fca6f6
@nzakas nzakas Merge pull request #72 from nschonni/add-border-bottom-color-gh-71
Add inherit as value for border-bottom-color
3b9c01e
@nzakas nzakas Merge pull request #73 from nschonni/add-addtional-node-env-for-travis
CI tests on Node 0.6+ stable versions
0c557b6
Commits on May 09, 2013
@bkw bkw support viewport relative units vh, vw and vm 9ba9d4b
@nzakas nzakas Merge pull request #74 from bkw/support-vh-vw-vm
support viewport relative units vh, vw and vm
2e24c5f
Commits on Jun 19, 2013
@nzakas nzakas Allow @font-face inside of @media (fixes #75) 893b131
@nzakas nzakas Release v0.2.3 f107010
Commits on Jun 20, 2013
@nschonni nschonni Add README to npm build ff9e8a3
Commits on Jun 21, 2013
@nzakas nzakas Merge pull request #77 from nschonni/npm-include-readme
Add README to npm build
3cbd92d
Commits on Jun 26, 2013
@infinit89 infinit89 Duplicated percentage checking
The percentage checking was duplicated
3a55293
Commits on Jun 29, 2013
@nzakas nzakas Merge pull request #78 from infinit89/patch-1
Duplicated percentage checking
8b26c99
Commits on Aug 13, 2013
@yaniswang yaniswang Add css3 values for writing-mode
Fixes gh-49
b33650a
Commits on Aug 16, 2013
@nzakas nzakas Merge pull request #81 from nschonni/49-rebase
Add css3 values for writing-mode fixes #49
e2c66a0
@nschonni nschonni Add overflow-wrap property
Added explicit values for the old word-wrap alias
Fixes gh-79
Fixes gh-80
fa7ae05
@nzakas nzakas Merge pull request #83 from nschonni/80-add-overflow-wrap
Add overflow-wrap property
448ce9a
@nschonni nschonni Add EditorConfig for spacing
EditorConfig supports multiple IDEs to enforce spacing guidelines
http://editorconfig.org/
7e8cf98
@nschonni nschonni Fix spacing in README f0990b6
@nschonni nschonni Fix spacing in Combinator.js 9fc9686
@nschonni nschonni Fix spacing in MediaFeature.js 4fd3053
@nschonni nschonni Fix spacing in MediaQuery.js d6ad292
@nschonni nschonni Fix spacing in PropertyName.js 28d2328
@nschonni nschonni Fix spacing in PropertyValue.js 002b3ae
@nschonni nschonni Fix spacing in PropertyValueIterator.js d5bde1b
@nschonni nschonni Fix spacing in PropertyValuePart.js 9dba755
@nschonni nschonni Fix spacing in Selector.js 69df023
@nschonni nschonni Fix spacing in SelectorPart.js 6017015
@nschonni nschonni Fix spacing in SelectorSubPart.js 41c66fc
@nschonni nschonni Fix spacing in Specificity.js 909df48
@nschonni nschonni Fix spacing in TokenStream.js 34bbb1f
@nschonni nschonni Fix spacing in Validation.js f0de85f
@nschonni nschonni Fix spacing in ValidationTypes.js 79e9338
@nschonni nschonni Fix spacing in EventTarget.js 36851b9
@nschonni nschonni Fix spacing in SyntaxUnit.js c6ce1e8
@nschonni nschonni Fix spacing in TokenStreamBase.js d95dca6
@nschonni nschonni Fix spacing in CSSSpecifityTests.htm 1531b8a
@nschonni nschonni Fix spacing in CSSTokensTests.htm fc94568
@nschonni nschonni Fix spacing in Specificity.js tests e816639
@nschonni nschonni Fix spacing in TokenStream.js tests 43e2dea
@nschonni nschonni Fix spacing in Validation.js tests d897be7
@nschonni nschonni Fix spacing in testrunner.htm 74e41b6
@nschonni nschonni Fix spacing in StringReader.js tests 55b5747
Commits on Aug 17, 2013
@nzakas nzakas Merge pull request #82 from nschonni/add-editorconfig
Add EditorConfig for spacing
8aac15c
Commits on Aug 22, 2013
@nschonni nschonni Add "grey" variants for "gray" colors
The non-American spelling of grey is widely supported, and explicitly
in the SVG color spec http://www.w3.org/TR/css3-color/#svg-color
Fixes gh-86
Fixes CSSLint/csslint#407
ff90e4f
@nzakas nzakas Merge pull request #87 from nschonni/add-grey-colour-aliases
Add "grey" variants for "gray" colors
15ddf36
Commits on Sep 07, 2013
@nschonni nschonni Add @-ms-viewport for IE10 24d9deb
Commits on Sep 21, 2013
@Rob--W Rob--W Add (final) Flexbox implementation (2013)
References:
- http://www.w3.org/TR/css3-flexbox/#property

I did not update the allowed values for min-width and min-height,
because this change was dropped from the Flexbox spec:
- http://dev.w3.org/csswg/css-flexbox/#changes
- http://lists.w3.org/Archives/Public/www-style/2013Mar/0137.html
8ac64fa
@Rob--W Rob--W Update properties for Flexbox 2009
Removed unprefixed box and inline-box from display

Replaced unprefixed box-* properties with moz and webkit prefixes.
a18a60d
@Rob--W Rob--W Add Flexbox 2012 implementation (IE10)
References:
- http://msdn.microsoft.com/en-us/library/ie/hh673531(v=vs.85).aspx
- http://www.w3.org/TR/2012/WD-css3-flexbox-20120322/

"-ms-flex" is defined (see reference) as
   [ <positive-flex> <negative-flex> <preferred-size> ] | none
   ^ <number>      ^ <number>      ^ "<width> without inherit"
"<width> without inherit" expands to "<length> || <percentage> || auto",
so the final definition of "-ms-flex" is:
[[ <number> <number>? ] || [ <length> || <percentage> || auto ] ] | none

The other values are taken verbatim from the references.
bea96d7
@Rob--W Rob--W Add webkit-prefixed properties of Flexbox 2013 5fb8f13
Commits on Sep 23, 2013
@nzakas nzakas Merge pull request #91 from Rob--W/flexbox-2013
Add standard Flexbox properties (2013)
7734add
Commits on Oct 24, 2013
@chrisjshull chrisjshull Update README.md 16b26cd
Commits on Oct 26, 2013
@nzakas nzakas Merge pull request #92 from chrisjshull/patch-1
Update README.md
8001381
Commits on Nov 21, 2013
@nzakas nzakas Merge pull request #85 from nschonni/add-ms-viewport
Add @-ms-viewport for IE10
f9f34c1
Commits on Dec 08, 2013
@mattiacci mattiacci Update support and tests for unicode-bidi (isolate, isolate-override,…
… plaintext)
337ac56
Commits on Dec 11, 2013
@nzakas nzakas Merge pull request #96 from mattiacci/unicode-bidi
Update support and tests for unicode-bidi
632e210
Commits on Dec 16, 2013
@tjvantoll tjvantoll Add touch-action and -ms-touch-action. 86e6686
@nzakas nzakas Merge pull request #98 from tjvantoll/touch-action
Add touch-action and -ms-touch-action.
4cbd2ec
Commits on Jan 07, 2014
@nzakas nzakas Version bump a9706f6
@nzakas nzakas Release 0.2.4 bf127a9
Commits on Jan 25, 2014
@mattiacci mattiacci Allow underscores in identifiers a0966ec
@nzakas nzakas Merge pull request #100 from mattiacci/ident-underscore
Allow underscores in identifiers
83c43b2
Commits on Feb 01, 2014
@stmichael stmichael Add support for animation-fill-mode 0c930dc
@nzakas nzakas Merge pull request #102 from stmichael/101_animation_fill_mode
Add support for animation-fill-mode
283c0f1
Commits on Feb 15, 2014
@sparanoid sparanoid Update viewport unit 5d95ac7
@sparanoid sparanoid Fix test task c81ebdb
Commits on Feb 18, 2014
@nzakas nzakas Merge pull request #105 from sparanoid/viewport-unit-update
Update viewport units
69e350f
Commits on Mar 12, 2014
@hartman hartman Allow @viewport to be inside of @media d6e4db6
@nzakas nzakas Merge pull request #109 from hartman/viewport_in_media
Allow @viewport to be inside of @media
bf9ac73
Commits on Mar 13, 2014
@terinjokes terinjokes Parse quoted and unquoted uri @imports. Fixes #108 fbbcab6
@nzakas nzakas Merge pull request #111 from terinjokes/import-uri
Parse quoted and unquoted uri @imports. Fixes #108
1677b50
Commits on Apr 04, 2014
@malept malept Add support for the CSS3 sizing spec 88d01d7
Commits on Apr 17, 2014
@nschonni nschonni Update repo URL for Travis badge
Switched to SVG version at the same time
638e4cb
Commits on Apr 28, 2014
@nschonni nschonni Merge pull request #115 from malept/css3-sizing
Add support for the CSS3 sizing spec
9a29ab4
@nschonni nschonni Ignore NPM debug logs 812ecb3
@nschonni nschonni Update package.json config
- Reran npm init to use the latest NPM format.
- Cleaned out unused variables (engine, directories).
- Updated EditorConfig settings to reflect the NPM 2 space default.
694fac4
@dougwilson dougwilson Support simple blocks in functions
This adds support for simple blocks within functions, for example:

    calc((100% - 1px) / 2)
f9e8776
@nschonni nschonni Merge pull request #113 from dougwilson/feature/simple-blocks-in-func…
…tions

Support simple blocks in functions
d9c4b1f
Commits on Apr 29, 2014
@malept malept Fix flexbox-related property value parsing
Several of the validation types were not defined, including <flex-basis>.
This was evident when trying to parse "flex: 1;".

Add test cases for various flexbox-related properties.
cfd9661
Commits on May 07, 2014
@nschonni nschonni Merge pull request #116 from malept/flexbox-fixes
Fix flexbox-related property value parsing
fff530f
@nschonni nschonni v0.2.5
* Fix flexbox-related property value parsing (Mark Lee)
* Support simple blocks in functions (Douglas Christopher Wilson)
* Update package.json config (Nick Schonning)
* Ignore NPM debug logs (Nick Schonning)
* Update repo URL for Travis badge (Nick Schonning)
* Add support for the CSS3 sizing spec (Mark Lee)
* Parse quoted and unquoted uri @imports. Fixes #108 (Terin Stock)
* Allow @viewport to be inside of @media (Derk-Jan Hartman)
* Fix test task (Tunghsiao Liu)
* Update viewport unit (Tunghsiao Liu)
* Add support for animation-fill-mode (Michael Stämpfli)
* Allow underscores in identifiers (Michael Mattiacci)
2b72171
@nschonni nschonni Add missing v0.2.4 changes ef58ae0
@nschonni nschonni Build: Don't add merge commits to change log 76fe56a
Commits on Jun 10, 2014
@jabley jabley Add Opera viewport token
Seeing 

```
Unknown @ rule: @-o-viewport. This rule looks for recoverable syntax errors. (errors)
```

when parsing some CSS.
aa38e0a
Commits on Jul 26, 2014
@mattiacci mattiacci Add support for will change ca6be03
Commits on Aug 04, 2014
@nchase nchase Add testing info to README.md 49b754e
Commits on Aug 18, 2014
@nschonni nschonni Merge pull request #119 from jabley/patch-1
Add Opera viewport token
6a896f8
@nschonni nschonni Merge pull request #122 from mattiacci/will-change
Add support for will-change
e365a61
Commits on Aug 29, 2014
@mattiacci mattiacci Add 'currentColor' keyword to <color> 2f20b21
Commits on Dec 08, 2014
@mattiacci mattiacci Add support for object-fit and object-position 1993d25
Commits on Dec 19, 2014
renatoi Add support for new text-align values c4b9843
Commits on Jan 24, 2015
renatoi Add support for new display values 9f7b4e2
renatoi Fixed the error message in the test 1090958
Commits on Jan 27, 2015
@stubbornella stubbornella Merge pull request #134 from renatoi/display-values
Add support for new display values
c612cee
@stubbornella stubbornella Merge pull request #130 from renatoi/text-align-values
Add support for new text-align values
846f20d
@stubbornella stubbornella Merge pull request #129 from mattiacci/object-fit-and-position
Add support for object-fit and object-position
b956a6e
@stubbornella stubbornella Merge pull request #124 from mattiacci/currentColor
Add 'currentColor' keyword to <color>
696a459
@stubbornella stubbornella Merge pull request #123 from nchase/patch-1
Add testing info to README.md
f30a827
Commits on Feb 12, 2015
@jawshooah jawshooah Add DOCUMENT_SYM token 1fb1cad
@jawshooah jawshooah Allow URI to match 'url', 'url-prefix', and 'domain' 7676805
@jawshooah jawshooah Add parser rules for @document b05cd51
@jawshooah jawshooah Add tests for DOCUMENT_SYM tokens
Also add missing tests for VIEWPORT_SYM
7970665
@jawshooah jawshooah Add tests for @document and @-moz-document dba0a59
@jawshooah jawshooah Add rulesets to @document tests 78bb3fb
@jawshooah jawshooah Explicitly check for errors in test cases 12b1af3
Commits on Feb 14, 2015
@nacin nacin Allow spaces within media query features. 88f40eb
Commits on Mar 02, 2015
@kkirsche kkirsche Add support for `ime-mode`
Add support for `ime-mode`

[MDN Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/ime-mode)
0f03bb6
@kkirsche kkirsche Add additional font properties 38d0396
@nschonni nschonni Merge pull request #139 from kkirsche/patch-2
Add support for `ime-mode`
f034400
@nschonni nschonni Merge pull request #125 from nacin/media-feature-spaces
Allow spaces within media query features
936f5b8
@jawshooah jawshooah Listen for errors in tests rather than asserting true bf00756
@nschonni nschonni Merge pull request #137 from jawshooah/at-document
Add support for @document, @-moz-document
88f8652
@nschonni nschonni Merge pull request #140 from kkirsche/patch-3
Add additional font properties
0d5ddf8
@nschonni nschonni Merge pull request #142 from jawshooah/tests/listen-for-errors
Listen for errors in tests rather than asserting true
b8e7f29
@kkirsche kkirsche Add support for box-decoration-break non-prefixed
Add support for non-prefixed `box-decoration-break`
https://developer.mozilla.org/en-US/docs/Web/CSS/box-decoration-break

Add missing comma

Add missing comma

Add `-o-box-decoration-break`
63b8bd6
@kkirsche kkirsche Add missing grid properties
Listed on MDN but no docs for them exist yet:
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference

[`grid-area` W3 Docs](http://www.w3.org/TR/css3-grid-layout/#propdef-grid-area)
[`grid-auto-columns` and `grid-auto-rows` W3 Docs](http://www.w3.org/TR/css3-grid-layout/#auto-tracks)
[`grid-auto-flow` W3 Docs](http://www.w3.org/TR/css3-grid-layout/#grid-auto-flow-property)
[`grid-auto-position` WebPlatform.org Docs](https://docs.webplatform.org/wiki/css/properties/grid-auto-position)
[`grid-column-start`, `grid-column-end`, `grid-row-start`, `grid-row-end` W3 Docs](http://www.w3.org/TR/css3-grid-layout/#propdef-grid-column-start)
[`grid-template` W3 Docs](http://www.w3.org/TR/css3-grid-layout/#propdef-grid-template)
[`grid-template-areas` W3 Docs](http://www.w3.org/TR/css3-grid-layout/#propdef-grid-template-areas)
[`grid-template-rows`, `grid-template-columns` W3 Docs](http://www.w3.org/TR/css3-grid-layout/#grid-template-rowcol)
c0fd0c0
@kkirsche kkirsche [Fix #104] Add support for `font-feature-settings`
[Fix #104] Add support for `font-feature-settings`

Simplify validation
3593e56
@nschonni nschonni Merge pull request #141 from kkirsche/patch-4
[Fix #104] Add support for `font-feature-settings`
a3fb6f1
@nschonni nschonni Merge pull request #138 from kkirsche/patch-1
Add support for box-decoration-break non-prefixed
77e3d0b
@kkirsche kkirsche [Fix #133] StringReader fails to normalize Windows line endings
[Fix #133] StringReader fails to normalize Windows line endings

`\r` matches a carriage return

`\n` matches a newline character.

`{1, 2}` matches between either 1 or 2 of the preceding tokens

This way you can start with either and should cover both linux or windows to fix #133
16af6b0
@kkirsche kkirsche Test against Node 0.12.0 on Travis CI
Test against Node 0.12.0 on Travis CI
713193a
Commits on Apr 15, 2015
@nschonni nschonni Merge pull request #146 from kkirsche/patch-6
Test against Node 0.12.0 on Travis CI
1ef88fb
@nschonni nschonni Merge pull request #145 from kkirsche/patch-5
[Fix #133] StringReader fails to normalize Windows line endings
aaacbc0
@nschonni nschonni Merge pull request #143 from kkirsche/patch-2
Add missing grid properties
b6a2cbb