WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #24450, comment 2


Ignore:
Timestamp:
05/30/13 08:43:14 (11 months ago)
Author:
ocean90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24450, comment 2

    initial v1  
    11Sorry I didn't specify, {{{#page table tr td}}} was testing with Twenty Thirteen. 
    22 
    3 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. 
     3The 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 [http://coding.smashingmagazine.com/2010/04/07/css-specificity-and-inheritance/ Smashing Magazine] for further reading. 
    44 
    55It'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.