New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 645397 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
NOT IN USE
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Compat



Sign in to add a comment

Change offsetParent to match spec change

Project Member Reported by zcorpan@gmail.com, Sep 9 2016

Issue description

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/

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
 

Comment 1 by zcorpan@gmail.com, Sep 9 2016

(Possible duplicate:  issue 645064 )

Comment 2 by e...@chromium.org, Sep 9 2016

 Issue 645064  has been merged into this issue.

Comment 3 by e...@chromium.org, Sep 9 2016

Status: Available (was: Untriaged)

Comment 4 by e...@chromium.org, Sep 9 2016

Labels: -Type-Bug Type-Compat

Comment 5 by msten...@opera.com, Sep 9 2016

Owner: msten...@opera.com
Status: Assigned (was: Available)
Project Member

Comment 6 by bugdroid1@chromium.org, 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

Comment 7 by msten...@opera.com, Sep 12 2016

Status: Fixed (was: Assigned)

Sign in to add a comment