Issue metadata
Sign in to add a comment
|
flexbox layout differs from firefox |
||||||||||||||||||||||||
Issue descriptionhttp://jsbin.com/fimomohixu/edit?html,output This page causes overflow in Firefox and not in Chrome. I'm not sure which behavior is correct per spec. The Chrome behavior makes a lot more sense to me.
,
Mar 23 2016
Hmm then again I'm not sure if that's what Firefox implements actually, Why does that end up so far right?
,
Mar 23 2016
I believe we (firefox) take the abspos element and...
- We put its upper-left corner at its placeholder's position (which is around the center of the flex container)
- We *also* honor its "width: 100%" -- so it sticks off the right side of the container, kind of like this awesome ascii art:
------------
[ (......]......)
[ (.....b]tn....)
[ (......]......)
------------
As you can see there, the abspos child has ~100% width, and it's positioned at a static position which is the center of the flex container (in only one dimension in my diagram, for simplicity). And the button is centered inside that abspos child.
Anyway -- I think this is correct *per and older spec version*, and the current-spec way to do things would be to position the absos thing as if it were the only flex item -- i.e. actually center the whole abspos thing inside of the flex container.
That would actually place it directly on top of the <video> -- this is what Edge does, and I think they're correct.
So, in short, neither Firefox nor Chrome are correct here. :) Chrome is at least correct on the x-position of the button, but it's wrong on the y-position.
,
Mar 23 2016
I've attached a screenshot that shows FF/Edge/Chrome. For anyone that doesn't have the context reading this thread, Edge does have the static positioning change and renders how I would expect it to per spec text. |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by cbiesin...@chromium.org
, Mar 23 2016Status: Duplicate (was: Assigned)