Bug 210144

Summary: [css-flexbox] Out-of-flow boxes should not be children of anonymous flex items.
Product: WebKit Reporter: Carlos Alberto Lopez Perez <clopez>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfulgham, obrufau, svillar, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.chromium.org/p/chromium/issues/detail?id=788379
https://bugs.chromium.org/p/chromium/issues/detail?id=807497
https://bugs.webkit.org/show_bug.cgi?id=205386

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>