Bug 210144 - [css-flexbox] Out-of-flow boxes should not be children of anonymous flex items.
Summary: [css-flexbox] Out-of-flow boxes should not be children of anonymous flex items.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-04-07 12:44 PDT by Carlos Alberto Lopez Perez
Modified: 2022-05-31 10:57 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Alberto Lopez Perez 2020-04-07 12:44:33 PDT
Text node children of a flexible box are wrapped in anonymous flex items. Consecutive text node siblings should be merged in the same item.

But we should not skip merging out-of-flow (absolute positioned) elements.

This causes failures in the following two WPT tests:

https://wpt.live/css/css-flexbox/anonymous-flex-item-004.html
https://wpt.live/css/css-flexbox/anonymous-flex-item-005.html

This two test pass on firefox. On Chrome currently only the 004 passes. Tracked at https://crbug.com/788379
Comment 1 Carlos Alberto Lopez Perez 2020-04-07 12:45:39 PDT
(In reply to Carlos Alberto Lopez Perez from comment #0)
> On Chrome currently only the 004 passes.
> Tracked at https://crbug.com/788379

 ^^^^^           Sorry, I mean tracked at https://crbug.com/807497
Comment 2 Oriol Brufau 2020-05-20 15:27:06 PDT
anonymous-flex-item-004.html is already tracked in bug 205386.
This bug can track anonymous-flex-item-005.html
Comment 3 Sergio Villar Senin 2021-10-04 02:14:45 PDT
(In reply to Oriol Brufau from comment #2)
> anonymous-flex-item-004.html is already tracked in bug 205386.
> This bug can track anonymous-flex-item-005.html

See https://bugs.webkit.org/show_bug.cgi?id=205386#c8 for a detailed explanation about why this is failing.
Comment 4 Radar WebKit Bug Importer 2022-05-31 10:57:05 PDT
<rdar://problem/94163881>