Bug 208110
| Summary: | scroll-margin not working with scrollIntoView() | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | collimarco91 |
| Component: | Scrolling | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | 709922234, simon.fraser, webkit-bug-importer, wenson_hsieh, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 13 | ||
| Hardware: | All | ||
| OS: | All | ||
collimarco91
scroll-margin does not work with scrollIntoView().
For example:
1. Visit this page: https://buonmenu.com/example
2. Click "MenĂ¹ all you can eat"
3. Click "Primi piatti" or anything else in the bottom navigation
4. scroll-margin is ignored, while Chrome and other browsers behave properly
I have also tried to add scroll-snap-margin to the element using the inspector, but it is still ignored.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/59709786>
Simon Fraser (smfr)
This is a fairly recent CSS change that isn't implemented yet.
collimarco91
> his is a fairly recent CSS change
Ok, that is true for the name of the property.
However there is *also* a second bug: scroll-snap-margin (or scroll-margin in the future) does not work with scrollIntoView()... it is completely ignored.
Simon Fraser (smfr)
*** This bug has been marked as a duplicate of bug 189265 ***