[wp-trac] [WordPress Trac] #22097: "comb" css files

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 4 14:22:05 UTC 2012


#22097: "comb" css files
-------------------------+-----------------------
 Reporter:  thomask      |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+-----------------------
Changes (by thomask):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 I know all this, but it has nothing to do with "combing" the css in the
 way i describe and in which csscomb.com is doing it e.g. first come
 properties defining position, then properites defining dimensions, then
 properties defining style and then final tuning - so in way which designer
 thinks. In current CSS the properties are sorted somehow randomly or in
 order which i do not understand, e.g. if you look at (@twenty-twelve)

 {{{
 .widget-area .widget {
         word-wrap: break-word;
         -webkit-hyphens: auto;
         -moz-hyphens: auto;
         hyphens: auto;
         margin-bottom: 48px;
         margin-bottom: 3.428571429rem;
 }
 }}}

 ... why something like having or not having hyphens got more priority than
 margin.

 '''Actualy it should be done if you look at current version of CSS coding
 standards (http://make.wordpress.org/core/handbook/coding-standards/css
 /#property-ordering) the problem is, that it is not as in example above,
 so i recoomend to use tools like CSSComb etc.'''

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22097#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list