[wp-trac] [WordPress Trac] #46371: Make sure in-page anchors are not hidden behind top bars
WordPress Trac
noreply at wordpress.org
Mon Jun 1 02:42:16 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 kingkero):
Recently we used `scroll-padding-top` ([https://developer.mozilla.org/en-
US/docs/Web/CSS/scroll-padding-top MDN], [https://caniuse.com/#search
=scroll-padding-top caniuse]) for a similar scenario.
While it does not have as great support as `:target` does, it at least
solves the problem with the extra space (as there is none). I could work
up some examples with that if you're interested.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46371#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list