Change offsetParent to match spec change |
|||||
Issue descriptionSee https://github.com/w3c/csswg-drafts/issues/409 Spec change https://github.com/w3c/csswg-drafts/commit/180b348a1ac0931043cd195651fc5164463d2bce Test/demo https://jsfiddle.net/nqgL7L2e/ Chromium: 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
,
Sep 9 2016
Issue 645064 has been merged into this issue.
,
Sep 9 2016
,
Sep 9 2016
,
Sep 9 2016
,
Sep 12 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/69f0712961a7ec8aedcd3ee724fa23c1aa8175fc commit 69f0712961a7ec8aedcd3ee724fa23c1aa8175fc Author: mstensho <mstensho@opera.com> Date: Mon Sep 12 09:54:18 2016 A container of out-of-flow positioned descendants should be an offsetParent. This reflects a recent spec change [1]. Previously, the condition was that the position property be different from 'static', but it's unreasonable that we shouldn't also include other objects that serve as containing blocks for fixed and absolutely positioned descendants, such as "transform". Gecko and Edge already have this behavior. [1] https://github.com/w3c/csswg-drafts/commit/180b348a1ac0931043cd195651fc5164463d2bce BUG= 645397 Review-Url: https://codereview.chromium.org/2328633003 Cr-Commit-Position: refs/heads/master@{#417903} [add] https://crrev.com/69f0712961a7ec8aedcd3ee724fa23c1aa8175fc/third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-contain.html [add] https://crrev.com/69f0712961a7ec8aedcd3ee724fa23c1aa8175fc/third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-transform.html [add] https://crrev.com/69f0712961a7ec8aedcd3ee724fa23c1aa8175fc/third_party/WebKit/LayoutTests/fast/dom/Element/offset-parent-will-change.html [modify] https://crrev.com/69f0712961a7ec8aedcd3ee724fa23c1aa8175fc/third_party/WebKit/Source/core/layout/LayoutObject.cpp
,
Sep 12 2016
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by zcorpan@gmail.com
, Sep 9 2016