[wp-trac] [WordPress Trac] #63030: Update CSS for `::-moz-placeholder` color

WordPress Trac noreply at wordpress.org
Tue Mar 18 16:42:15 UTC 2025


#63030: Update CSS for `::-moz-placeholder` color
----------------------------+---------------------------------
 Reporter:  afercia         |       Owner:  joedolson
     Type:  defect (bug)    |      Status:  accepted
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  accessibility, css
----------------------------+---------------------------------

Comment (by aialvi):

 I have some thoughts to share. The current approach needs to consider
 compatibility with legacy Firefox versions that still represent about 18%
 of users. I'd recommend keeping the opacity: 1 property temporarily with a
 clear deprecation timeline and documenting the planned removal date in
 code comments. For theme implementation, using
 {{{
 color-mix(in srgb, currentColor 75%, transparent)
 }}}

 provides better contrast while maintaining compatibility across themes.
 For the core implementation, we should retain the #646970 color for the
 admin area while adding progressive enhancement for newer Firefox
 versions, making sure we meet WCAG AA compliance for color contrast. Theme
 authors would benefit from guidance on implementing relative color values
 using color-mix, which automatically supports both light and dark modes.

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


More information about the wp-trac mailing list