[wp-trac] [WordPress Trac] #44643: CSS line-height values should be unitless unless necessary to be defined as a specific pixel value

WordPress Trac noreply at wordpress.org
Wed Jul 25 21:48:22 UTC 2018


#44643: CSS line-height values should be unitless unless necessary to be defined as
a specific pixel value
--------------------------+-----------------------------
 Reporter:  pbiron        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 per [ticket:44627#comment:4], CSS line-height values should be unitless
 `unless necessary to be defined as a specific pixel value`.

 In trunk, there are currently 268 line-height rules that use `px`, 64 that
 use `em` and 14 that use '%` (tho percentages are probably considered
 "unitless").

 It may be the case that some of those rules are correctly using units, but
 someone needs to go through each one and determine whether they can be
 done unitless.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44643>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list