3 ms·
Just a pet peeve: Sticky headers or footers that overlay scrolled content are bad, because they interfere with jumping to page search results and anchors, as br
by layer8 5y ago
Just a pet peeve: Sticky headers or footers that overlay scrolled content are bad, because they interfere with jumping to page search results and anchors, as browsers do not take into account that the target may be hidden by an overlaid element.
=> If you use sticky headers/footers, lay out the other content so that it isn’t overlaid by those headers/footers.
- clairity 5y agoseems like the better solution is for the browser to take into account the sticky block when scrolling to the desired content.
- layer8 5y agoThe problem, I guess, is that there can be legitimate transparent-ish overlays (covering large parts or the whole of the viewport), and it would be difficult to find a sensible logic that works well in most cases in practice. Anyway, it doesn’t matter much what would be the better solution as long as browsers don’t implement it.
- clairity 5y agoyah, it's fraught with edge cases, but every browser/dom feature seems to need to run a gauntlet of them anyway, so i'm not sure this one is especially complicated. but the slowness of new features is definitely frustrating, even if understandable.