-
Notifications
You must be signed in to change notification settings - Fork 496
webkit issue about percentage size inside flexbox #28
Comments
Do you know of a workaround? |
|
test case |
I think this works at this point, but I don't think this will work once Chrome updates to the new part of the spec regarding absolute positioned children. I will test this on Monday since IE has already made this change and update this if it works or not. Here is the test case I will use to verify: http://jsbin.com/fowaxisupo/1/edit |
Had to use your solution @rinick Thank you for the tip! |
@gregwhitworth It's a good note and made me nervous, but rinick's workaround still fixes the problem, so long as my flex sized container is
I'm wondering though if this will keep working or fail to work after Chrome updates. There are lots of "clarifications" to the spec around absolute positioning but I can't parse the intent. What's the static position of an absolutely positioned child element? https://drafts.csswg.org/css-flexbox/#change-201403-clarify |
https://code.google.com/p/chromium/issues/detail?id=341310
if flex item's size is modified by stretch, flexgrow, flexshrink, its children won' be able to measure parent's size, so 100% will be 100% of the original parent size (before flexgrow or stretch), not based on the real size
The text was updated successfully, but these errors were encountered: