[wp-trac] [WordPress Trac] #44777: Twenty Sixteen and Twenty Seventeen ignore/override ordered list types

WordPress Trac noreply at wordpress.org
Wed Mar 15 16:57:10 UTC 2023


#44777: Twenty Sixteen and Twenty Seventeen ignore/override ordered list types
---------------------------+-----------------------------
 Reporter:  Greg Raven     |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  css
---------------------------+-----------------------------
Changes (by sabernhardt):

 * keywords:  reporter-feedback 2nd-opinion =>
 * focuses:   => css
 * milestone:  Awaiting Review => Future Release


Comment:

 #57920 notes that almost all of the 'classic' bundled themes (up to Twenty
 Twenty-One) have list style overrides for ordered lists. This was a clear
 design decision, good or bad, so any ordered lists that do not have the
 `type` attribute should continue to have the same style as the theme
 always gave.

 Raising the specificity with `ol:not([type])` could cause other issues.
 Using `ol:where(:not([type]))` might fit well for this situation in
 browsers that WordPress officially supports, though old browsers that have
 trouble with `:where()` might then show their default list type where it
 should be `none` (from the CSS reset). Adding a style for `ol[type]` only
 worked with `revert-layer` for me, and that has
 [https://developer.mozilla.org/en-US/docs/Web/CSS/revert-layer very low
 browser support].

 The ephemera widgets (in Twenty Eleven and Twenty Fourteen) might be best
 to leave as the square style.

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


More information about the wp-trac mailing list