Open jonjohnjohnson opened 6 years ago
I resort to these type of hacks all the time, but alot of authors don't, and you end up scrolling past a heading usually on pages with a position fixed header which can be pretty awkward especially if you clicked a url fragment so you have to scroll up again just to read the heading.
@fantasai Again, if you think that #3721 makes it now clear enough in css-scroll-snap (regardless of cssom-view), for vendors implementing that spec, to enable these properties effects outside of snapports, then this issue can be closed. I just want it clear so that there is no confusion when filing bugs against the different vendors for these effects.
https://drafts.csswg.org/cssom-view-1/
Though I find disparate mentions of
scroll-padding
/scroll-margin
values being used in scroll position decision making forscrollIntoView
and general "jump links", I see implementations of css-scroll-snap not going so far as enabling the properties effects outside of snapports.In hopes that we can get rid of hacks like...
In relation to articles like...
I think these properties should be referenced/highlighted in cssom-view?
Edited - Blink has now enabled these properties for use outside of snapports, though only in the block (or maybe just vertical) axis.