Re: [csswg-drafts] [css-flexbox][css-sizing] How is flex-basis content size affected by transferred size?

Firefox's behavior is *almost* right. [This older Mozilla bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1056959) describes the one place they get it wrong - in this case, they're not treating the cross-size as definite when they should (an "align-self:stretch" item should be treated as having a definite cross size when the flexbox's cross size is definite).  If "align-self" is set to any other value, they do work correctly.

Chrome is quite wrong, because our image handling code is bad in multiple ways. (For example, we treat an inline SVG and an `img` displaying an SVG differently, as you noticed.)  Pay no attention to that, it's just broken.

Note that "transferred size" is irrelevant in these cases - it's only used for finding the min-* size, when you have a definite size on either width or height, but these examples (at least the first) have auto widths/heights.

The third case is not only consistent, but actually correct!  By mimicking the *intended* behavior for the first test case (by explicitly setting the height to fill the container, which *should* be happening automatically), it falls down the right code paths and gives the result we want.



-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/694#issuecomment-315915739 using your GitHub account

Received on Monday, 17 July 2017 23:38:59 UTC