Bug 221481
Summary: | [Interop 2021][css-flexbox] Ignore specified block sizes when computing flex items' intrinsic block sizes | ||
---|---|---|---|
Product: | WebKit | Reporter: | Sergio Villar Senin <svillar> |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | bfulgham, simon.fraser, webkit-bug-importer, zalan |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 136754 |
Sergio Villar Senin
Newly imported WPT tests are failing:
imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-height-auto-002a.html
imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-height-auto-002c.html
imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-002a.html
imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-002c.html
imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-026.html
imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-029.html
imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-width-flex-items-015.html
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Sergio Villar Senin
(In reply to Sergio Villar Senin from comment #0)
> Newly imported WPT tests are failing:
>
> imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-height-auto-002a.
> html
> imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-height-auto-002c.
> html
> imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-002a.
> html
> imported/w3c/web-platform-tests/css/css-flexbox/flexbox-min-width-auto-002c.
> html
These will be fixed as part of bug 221110
Radar WebKit Bug Importer
<rdar://problem/74279472>
Sergio Villar Senin
> imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-026.html
> imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-029.html
> imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-width-flex-items-015.html
All these 3 fail for the very same reason. Let's suppose the following scenario:
<div style="display: flex; flex-direction: column">
<div style="flex-basis: 100px; height: 200px">
<div style="height: 100%">
When computing the flex item intrinsic block size we let the inner div's height resolve against the flex item's 200px, giving the flex item an automatic minimum size of 200px, even though the min-content size is supposed to be calculated with the item having an 'auto' size. We should ignore the item's 200px height instead.
Blink fixed it in NG in https://chromium-review.googlesource.com/c/chromium/src/+/2640774
Brent Fulgham
Also these:
imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-width-flex-items-013.html
imported/w3c/web-platform-tests/css/css-flexbox/flex-minimum-height-flex-items-025.html