[wp-trac] [WordPress Trac] #51910: Use New CSS Scroll-Padding Feature to Account for Admin Bar When Deep Linking

WordPress Trac noreply at wordpress.org
Tue Dec 1 21:06:16 UTC 2020


#51910: Use New CSS Scroll-Padding Feature to Account for Admin Bar When Deep
Linking
-------------------------+-----------------------------
 Reporter:  Nyiriland    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Toolbar      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:  css          |
-------------------------+-----------------------------
 It's been a long-standing annoyance with WordPress that when deep linking
 to content inside of a page, the fixed admin bar covers the first 32px of
 the linked content (or 46px on widths =< 782px).

 To account for this, we should use the new CSS property of scroll-padding,
 to account for the fixed element eating up x amount of pixels of vertical
 screen.

 The browser support is sufficient for usage: https://caniuse.com/?search
 =scroll-padding-top

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


More information about the wp-trac mailing list