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

WordPress Trac noreply at wordpress.org
Mon Oct 6 23:46:20 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:  has-patch         |     Focuses:
------------------------------+------------------

Comment (by netweb):

 Replying to [comment:11 nacin]:
 > Replying to [comment:1 x2048]:
 > > 1) all media queries will need to be rewritten to not include spaces
 between parentheses, or CSSLint will show errors.
 >
 > No thanks. :) I patched CSSLint for this: https://github.com/CSSLint
 /parser-lib/pull/125
 Media Queries are ''currently'' defined in WP Core CSS coding standards as
 to '''not''' include spaces between parentheses:
 Source: https://make.wordpress.org/core/handbook/coding-standards/css
 /#media-queries
 {{{
 #!css
 @media all and (max-width: 699px) and (min-width: 520px) {

         /* Your selectors */
 }
 }}}

 '''Note''': This WP Core CSS Standard will need updating once safe to do
 so, currently updates/changes to the CSS Handbook are not allowed, see
 [https://docs.google.com/spreadsheets/d/1MDBSBavs1fzLpw2MYAT2FCxS3tLBCe6MgUr39753fyw/edit#gid=0
 Core Contributor Handbook] spreadsheet. CC: Ping @samuelsidler

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


More information about the wp-trac mailing list