[wp-trac] [WordPress Trac] #29792: Grunt: Add a precommit task to check for CSS syntax errors

WordPress Trac noreply at wordpress.org
Mon Sep 29 22:04:51 UTC 2014


#29792: Grunt: Add a precommit task to check for CSS syntax errors
------------------------------+------------------
 Reporter:  helen             |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  4.1
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------

Comment (by x2048):

 I tried adding csslint to grunt and ran into the following problems:

 http://stackoverflow.com/questions/15626062/getting-errors-in-the-css-
 linter-when-using-media-queries
 https://github.com/CSSLint/csslint/issues/295

 These problems occur even with all linting settings set to false.

 To use CSSLint:
 1) all media queries will need to be rewritten to not include spaces
 between parentheses, or CSSLint will show errors.
 2) the @ms-keyframes styles will need to be moved to a separate file (that
 doesn't get linted), or added to the auto-prefixer.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29792#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list