Bug 189265 - Rename scroll-snap-margin to scroll-margin, and have it apply when scrolling to anchors
Summary: Rename scroll-snap-margin to scroll-margin, and have it apply when scrolling ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: All All
: P2 Normal
Assignee: Simon Fraser (smfr)
Keywords: BrowserCompat, InRadar
: 208110 (view as bug list)
Depends on:
Reported: 2018-09-04 11:36 PDT by Michał Gołębiowski-Owczarek
Modified: 2020-09-02 09:13 PDT (History)
13 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Michał Gołębiowski-Owczarek 2018-09-04 11:36:41 PDT
It looks that the CSS Scroll Snap spec has changed and what was named `scroll-snap-margin` is now named `scroll-margin`. The just released Chrome 69 supports only `scroll-margin`.
Comment 1 Mikaela Young 2019-11-04 12:36:23 PST
Scroll margin should also still be applied when snapping is not turned on or applied to the element, allowing it's use with anchor links.

See https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin.
Comment 2 Radar WebKit Bug Importer 2019-11-04 12:43:17 PST
Comment 3 Simon Fraser (smfr) 2020-04-30 11:38:20 PDT
*** Bug 208110 has been marked as a duplicate of this bug. ***
Comment 4 dakur 2020-05-21 07:26:55 PDT
Any news on this please? It would save a lot of pain when linking to URLs with hash as current hack with negative margin-top & positive padding-top is not reliable as it brings new issues with overlaying elements.
Comment 5 Ben Frain 2020-06-23 08:22:37 PDT
Pretty standard stuff this. Any ETA on when we might see it in WebKit?