Bug 165062 - [css-flex] Flex container baseline wrongly uses content-box bottom to synthesize baselines
Summary: [css-flex] Flex container baseline wrongly uses content-box bottom to synthes...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2016-11-24 07:09 PST by Javier Fernandez
Modified: 2017-03-28 07:05 PDT (History)
5 users (show)

See Also:

Test case to reproduce the issue. (925 bytes, text/html)
2016-11-24 07:09 PST, Javier Fernandez
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Javier Fernandez 2016-11-24 07:09:11 PST
Created attachment 295409 [details]
Test case to reproduce the issue.

According the the last draft version of the Flexible Box specification:

"if the flex container has at least one flex item, the flex container’s first/last main-axis baseline set is generated from the alignment baseline of the first/last flex item. (If that item has no alignment baseline parallel to the flex container’s main axis, then one is first synthesized from its border edges.)"

The CSS WG has agreed as well that we should do the same for orthogonal flex items:


Also, while I couldn't find it in the specs, the CSS WG has agreed that an empty Flexbox containers should synthesize its baseline using its border-box bottom edge:


The attached test cases prove that current implementation doesn't follow the spec.
Comment 1 Jon Lee 2016-12-15 16:17:46 PST