[wp-trac] [WordPress Trac] #24450: Weak CSS selectors for WP Editor styles

WordPress Trac noreply at wordpress.org
Wed May 29 23:58:38 UTC 2013


#24450: Weak CSS selectors for WP Editor styles
-------------------------+------------------------------
 Reporter:  ericlewis    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by ericlewis):

 Sorry I didn't specify, {{{#page table tr td}}} was testing with Twenty
 Thirteen.

 The issue here seems to be CSS specificity, and the nature of CSS class
 usage in the selectors for the WP Editor skin versus a theme or a plugin
 using an ID selector to define the style. The W3 spec has a
 [http://www.w3.org/TR/css3-selectors/#specificity nice rundown on
 calculating specificity], and it's been covered in [http://css-tricks.com
 /specifics-on-css-specificity/ CSS Tricks] and
 [coding.smashingmagazine.com/2010/04/07/css-specificity-and-inheritance/
 Smashing Magazine] for further reading.

 It's tricky here, because the nature of the WP Editor is that it can be
 called multiple times per page, meaning if we were going to style it with
 IDs we would have to drop styles in an internal stylesheet, like the
 styling of the WP admin bar or the Twenty-somethings' custom headers. Or
 perhaps use !important rule for the wp_themeSkin declarations.

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


More information about the wp-trac mailing list