[wp-trac] [WordPress Trac] #43897: Coding standards: audit a few occurrences of CSS font-weight using keywords instead of numeric values

WordPress Trac noreply at wordpress.org
Sun Apr 29 18:11:39 UTC 2018


#43897: Coding standards: audit a few occurrences of CSS font-weight using keywords
instead of numeric values
-----------------------------------+-----------------------------------
 Reporter:  afercia                |       Owner:  afercia
     Type:  defect (bug)           |      Status:  reopened
 Priority:  normal                 |   Milestone:  4.9.6
Component:  Administration         |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch fixed-major  |     Focuses:  ui, coding-standards
-----------------------------------+-----------------------------------

Comment (by afercia):

 Note: there are several occurrences of font weight set to `normal` in
 `font` shorthand declarations. Normally, they should be changed to `400`
 but, as far as I see, they're all related to dashicons. For example:

 `font: normal 20px/1 dashicons;`

 So I'm not fully sure they should be changed. Noticed also in  few cases,
 the shorthand syntax misses the font weight, for example (it should
 fallback to the initial value `normal`):

 `font: 20px/.5 dashicons;`

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


More information about the wp-trac mailing list