[Webkit-unassigned] [Bug 99923] margin-top/bottom has no effect for child nodes of flex items

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 21 16:54:58 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=99923





--- Comment #5 from Kang-Hao (Kenny) Lu <kennyluck at csail.mit.edu>  2012-10-21 16:55:59 PST ---
Created an attachment (id=169818)
 --> (https://bugs.webkit.org/attachment.cgi?id=169818&action=review)
margin-collapsing without flexbox ('overflow: hidden')

The spec says a flex container establishes a block formatting context and so I attached a version of the test case with 'overflow: hidden;' set on the corresponding element. An earlier version (two months ago?) of spec says each flex item establishes a BFC so the first example in my test case is set with such, which I consider the expected behavior.

But even without the reason above, setting the 'margin-top' of the element in question (the first child of a flex item) to, say, 20000em would not push the element out of the window. That is, I don't think the top margin of the element is collapsed with anything else. It is just always zero.

For what it's worth, both Opera Next and Firefox nightly work as expected but I don't have IE10 at hands.

So yes, I think this should be reopened. Unfortunately I don't have editbug.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list