New issue
Advanced search Search tips

Issue 641148 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Aug 2016
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Compat



Sign in to add a comment

transform on display:inline element doesn't create containing block for absolutely positioned elements

Reported by ldavidba...@gmail.com, Aug 25 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/51.0.2704.79 Chrome/51.0.2704.79 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. load attached testcase

What is the expected behavior?
The pink box should be in the upper right corner of the blue box.

What went wrong?
The pink box is instead in the upper right corner of the page.

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes 

Chrome version: 51.0.2704.79  Channel: n/a
OS Version: Ubuntu 16.04
Flash Version: 

https://drafts.csswg.org/css-transforms/#transform-property specifies that a value of 'transform' other than none establishes a containing block for absolutely and fixed positioned elements.

Chromium does this correctly for elements with a transform that are display:block, but not those that are display:inline.  Chrome also does this correctly for display:inline elements that are position:relative.

So you'll see the correct behavior if you make either one of the following two modifications to the testcase:
 A. remove 'display:inline' from the div that has it
 B. change 'transform: translate(0px)' to 'position: relative'
 
float-relpos-cb.html
321 bytes View Download
Note that this works in Firefox, but Edge and Chromium have the exact same bug.
Er, sorry, this is invalid; transform no longer applies to inline elements per spec changes.
And I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1298216 as a Gecko bug.

Comment 4 by rbyers@chromium.org, Aug 25 2016

Status: WontFix (was: Unconfirmed)
Thanks for the update!

Sign in to add a comment