[wp-trac] [WordPress Trac] #46371: Make sure in-page anchors are not hidden behind top bars
WordPress Trac
noreply at wordpress.org
Fri Jun 19 06:01:55 UTC 2020
#46371: Make sure in-page anchors are not hidden behind top bars
-------------------------------------------------+-------------------------
Reporter: afercia | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Future
| Release
Component: Toolbar | Version:
Severity: normal | Resolution:
Keywords: has-screenshots good-first-bug has- | Focuses: ui,
patch 2nd-opinion | accessibility
-------------------------------------------------+-------------------------
Comment (by thimalw):
Replying to [comment:15 dufresnesteven]:
> It won't collide with element styles.
Good way of thinking, but unfortunately this still collides with the
element styles. Say a theme has a style applied to the :before pseudo
element of the target element, then this would cause a problem.
`scroll-padding-top` as suggested above seems to do the trick. But I'm not
sure whether it has enough support to be used in this case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46371#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list