Bug 235432 - Scrolling while focusing an element should take into account scroll margin
Summary: Scrolling while focusing an element should take into account scroll margin
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Martin Robinson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-01-21 02:10 PST by Martin Robinson
Modified: 2022-02-15 06:54 PST (History)
2 users (show)

See Also:


Attachments
Patch (3.44 KB, patch)
2022-01-21 02:13 PST, Martin Robinson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Robinson 2022-01-21 02:10:27 PST
CSS scroll-margin should come into play when focusing an element. The css-scroll-snap-1 [1] specification says:

```
Similarly the 'scroll-margin' property can be used on any box to adjust its visual area for the purpose of scroll-into-view operations.
```

Focusing triggers this kind of operation.

1. https://drafts.csswg.org/css-scroll-snap/
Comment 1 Martin Robinson 2022-01-21 02:13:48 PST
Created attachment 449647 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2022-01-28 02:11:15 PST
<rdar://problem/88176885>
Comment 3 EWS 2022-02-15 06:54:11 PST
Committed r289810 (247271@main): <https://commits.webkit.org/247271@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 449647 [details].