Bug 161788 - Change offsetParent to match spec change
Summary: Change offsetParent to match spec change
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-09-09 01:55 PDT by Simon Pieters
Modified: 2016-09-09 12:58 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Pieters 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>