New issue
Advanced search Search tips

Issue 659610 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 671132



Sign in to add a comment

[css-flex] Flex container baseline wrongly uses content-box bottom to synthesize baselines

Project Member Reported by jfernan...@igalia.com, Oct 26 2016

Issue description

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

https://drafts.csswg.org/css-flexbox/#flex-baselines
"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:

https://github.com/w3c/csswg-drafts/issues/373
https://lists.w3.org/Archives/Public/www-style/2016Sep/0000.html

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:

https://github.com/w3c/csswg-drafts/issues/439

The attached test cases prove that current implementation doesn't follow the spec.


 
baseline-flexbox-bug.html
925 bytes View Download
Components: Blink>Layout>Flexbox
I'll have to look into this

Comment 2 by e...@chromium.org, Oct 27 2016

Status: Assigned (was: Untriaged)
Blocking: 671132
cbiesinger@ what do you think about this issue ? It's pretty clear that this is a change in the Flexbox specs that makes wrong the current Flexbox implementation in Chrome. 

I'm worried about backward compatibility issues if we modify this behavior, but I'd need such change to complete the implementation for grid, which also uses the border-box to synthesize grid item's baseline when needed (empty or orthogonal items).

Comment 5 by e...@chromium.org, May 21 2018

Any update here Christian?

Sign in to add a comment