[wp-trac] [WordPress Trac] #45937: CSS coding standards: audit the rgba() values

WordPress Trac noreply at wordpress.org
Fri Jan 11 11:28:33 UTC 2019


#45937: CSS coding standards: audit the rgba() values
------------------------------+----------------------------------------
 Reporter:  afercia           |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Administration    |    Version:
 Severity:  normal            |   Keywords:  needs-patch good-first-bug
  Focuses:  coding-standards  |
------------------------------+----------------------------------------
 There are various occurrences of incorrect `rgba()` values across the
 admin stylesheets.

 Incorrect examples:
 {{{
 rgba( 0, 0, 0, 0.3 )
 rgba(0,0,0,0.1)
 rgba(0,0,0,.6)
 }}}



 Correct example from the coding standards, see
 https://make.wordpress.org/core/handbook/best-practices/coding-
 standards/css/#values:
 {{{
 rgba(0, 0, 0, 0.5)
 }}}

 Also worth mentioning:
 > Use a leading zero for decimal values, including in rgba().

 Given the good amount of cases to fix, it would be best to address this in
 a specific patch.

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


More information about the wp-trac mailing list