Bug 161788 - Change offsetParent to match spec change
Summary: Change offsetParent to match spec change
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Martin Robinson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-09-09 01:55 PDT by Simon Pieters (:zcorpan)
Modified: 2022-02-28 15:55 PST (History)
13 users (show)

See Also:


Attachments
Patch (5.71 KB, patch)
2021-12-07 08:04 PST, Martin Robinson
no flags Details | Formatted Diff | Diff
Patch (12.59 KB, patch)
2021-12-08 07:54 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 Simon Pieters (:zcorpan) 2016-09-09 01:55:27 PDT
See https://github.com/w3c/csswg-drafts/issues/409

Spec change https://github.com/w3c/csswg-drafts/commit/180b348a1ac0931043cd195651fc5164463d2bce

Test/demo
https://jsfiddle.net/nqgL7L2e/

WebKit:
outer.style	inner.offsetParent
/* empty */	body
position: relative	outer
transform: translate(0)	body
will-change: position	body
will-change: transform	body

Gecko:
outer.style 	inner.offsetParent
/* empty */	body
position: relative	outer
transform: translate(0)	outer
will-change: position	outer
will-change: transform	outer
Comment 1 Radar WebKit Bug Importer 2016-09-09 12:58:33 PDT
<rdar://problem/28230510>
Comment 2 Martin Robinson 2021-12-07 08:04:33 PST
Created attachment 446173 [details]
Patch
Comment 3 EWS Watchlist 2021-12-07 08:06:11 PST
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 4 Martin Robinson 2021-12-08 07:54:15 PST
Created attachment 446366 [details]
Patch
Comment 5 EWS 2022-01-05 02:02:14 PST
Committed r287610 (245737@main): <https://commits.webkit.org/245737@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 446366 [details].
Comment 6 Brent Fulgham 2022-02-04 14:44:10 PST
This change should be present in STP 139, iOS 15.4 Beta, and macOS 12.3 Beta.