Bug 229997 - [css-position-sticky] Sticky constraints are calculated incorrectly when scrolling container has padding and borders
Summary: [css-position-sticky] Sticky constraints are calculated incorrectly when scro...
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: 2021-09-07 04:53 PDT by Martin Robinson
Modified: 2021-09-08 04:49 PDT (History)
10 users (show)

See Also:


Attachments
Patch (7.31 KB, patch)
2021-09-07 07:42 PDT, Martin Robinson
no flags Details | Formatted Diff | Diff
Patch (11.97 KB, patch)
2021-09-08 01:42 PDT, 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 2021-09-07 04:53:19 PDT
imported/w3c/web-platform-tests/css/css-position/sticky/position-sticky-large-top-2.tentative.html and imported/w3c/web-platform-tests/css/css-position/sticky/position-sticky-large-top.tentative.html are failing which test the situation where the scrolling container has padding and border and the "top" property on the sticky item pushes it beyond the original boundaries of the content rect.
Comment 1 Martin Robinson 2021-09-07 07:42:55 PDT
Created attachment 437501 [details]
Patch
Comment 2 EWS Watchlist 2021-09-07 07:44:00 PDT
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Comment 3 Martin Robinson 2021-09-08 01:42:31 PDT
Created attachment 437612 [details]
Patch
Comment 4 EWS 2021-09-08 04:48:32 PDT
Committed r282138 (241435@main): <https://commits.webkit.org/241435@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 437612 [details].
Comment 5 Radar WebKit Bug Importer 2021-09-08 04:49:17 PDT
<rdar://problem/82867377>