Bug 161788

Summary: Change offsetParent to match spec change
Product: WebKit Reporter: Simon Pieters (:zcorpan) <zcorpan>
Component: DOMAssignee: Martin Robinson <mrobinson>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, cdumez, changseok, clopez, esprehn+autocc, ews-watchlist, glenn, kondapallykalyan, mrobinson, 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/31931
https://bugs.webkit.org/show_bug.cgi?id=212372
Attachments:
Description Flags
Patch
none
Patch none

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.