Skip to content

[cssom-view][css-scroll-snap] State scrollport and target scroll-snap properties effects in cssom for SIV and jump links #2428

Description

@jonjohnjohnson

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 for scrollIntoView 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...

.target-sentinel-for-reference     { position: relative; top: -3rem; }
.target-sentinel-for-section-title { position: relative; top: -6rem; }

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions