Skip to content

[css-flexbox-1] To transferred min/max constraints get applied to the min/max main sizes? #10997

@bfgeek

Description

@bfgeek

TL;DR this testcase:

<!DOCTYPE html>
<div style="display: flex; width: 100px;">
  <div style="aspect-ratio: 1; max-height: 50px; flex: 1; background: green;"></div>
</div>

Should the rect be 100x50 (Firefox/WebKit) or 50x50 (Blink temporarily).

Basically all browsers were previously ignoring the transferred max constraint in this case. Blink shipped an (unintentional) behaviour change and received a bug report about it.

I'm going to change Blink back for the moment, but this case seems un-addressed in the spec currently.

@tabatkins @fantasai

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions