Bug 229997

Summary: [css-position-sticky] Sticky constraints are calculated incorrectly when scrolling container has padding and borders
Product: WebKit Reporter: Martin Robinson <mrobinson>
Component: CSSAssignee: Martin Robinson <mrobinson>
Status: RESOLVED FIXED    
Severity: Normal CC: changseok, clopez, esprehn+autocc, ews-watchlist, glenn, kondapallykalyan, pdr, simon.fraser, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/30376
Attachments:
Description Flags
Patch
none
Patch none

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>