[Webkit-unassigned] [Bug 115039] [CSSRegions]Flex items auto-height regions have wrong height

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 30 01:29:09 PDT 2013


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


Catalin badea <badea at adobe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |badea at adobe.com




--- Comment #3 from Catalin badea <badea at adobe.com>  2013-07-30 01:28:55 PST ---
The issue from the first test case has been fixed in #118057.

(In reply to comment #2)
> Created an attachment (id=199334)
 --> (https://bugs.webkit.org/attachment.cgi?id=199334&action=review) [details]
> test file 2
> 
> Here's another test file. In this case the region in the flex container is taking on the height of the container, but the second region isn't sizing correctly (there should be a black line around the second region's content - what you're seeing is overflow). If you take the border off the regions, the overflow in the second region disappears (perhaps this is a separate bug?)

The fact that the second region does not increases its size for fitting the content proved to be the correct behaviour according to the spec.
The rfcb height resolution with auto-height regions inside flexboxes roughly works as follows:
1. layout document using height=0 for auto-height regions. This includes a full flexbox layout.
2. Layout flow thread content and compute the height of auto-height regions ignoring any constraints set by the flex container.
3. layout document using the computed heights from step 2, this time honoring the constraints set by the flex container.

What this means is that, for test 2, the first region will compute a height equal to the flowthread's height and the second region will compute a height equal to zero (in step 2). In step 3 the flex container will apply
constraints on the first region shrinking it and causing overflow.

The overflow not being displayed unless the region with zero height has a border is another bug, indeed.

-- 
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