Bug 237710 - REGRESSION: element with "align-items: baseline" does not wrap correctly in nested flex/grid structure
Summary: REGRESSION: element with "align-items: baseline" does not wrap correctly in n...
Status: RESOLVED DUPLICATE of bug 237732
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-10 05:42 PST by Sebastian
Modified: 2022-03-13 14:16 PDT (History)
6 users (show)

See Also:


Attachments
HTML snippet to reproduce the bug (338 bytes, text/html)
2022-03-10 05:42 PST, Sebastian
no flags Details
image of the incorrect rendering (7.08 KB, image/png)
2022-03-10 05:42 PST, Sebastian
no flags Details
image of the expected correct rendering (7.10 KB, image/png)
2022-03-10 05:43 PST, Sebastian
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian 2022-03-10 05:42:01 PST
Created attachment 454343 [details]
HTML snippet to reproduce the bug

when wrapping some text in a nested flex/grid structure and setting "align-items: baseline;" on the parent grid, long text which exceeds the width of the container is not wrapped (its width is not limited by the parent width). Instead the text is rendered in a single line. The height of the container however is calculated correctly, just as if the text would be wrapped properly. See attached HTML snipped for details on the structure.

A different nesting of grid/flex containers quickly resolves the issue, the problem seems to be only present when mixing both flex and grid items.

The bug has been reproduced using the build of WebKit included in the *Playwright* project v1.19.2: https://github.com/microsoft/playwright/blob/v1.19.2/browser_patches/webkit/UPSTREAM_CONFIG.sh => WebKit version should be https://commits.webkit.org/246774@main.
It worked as expected with the version included in Playwright 1.16.3 (https://github.com/microsoft/playwright/blob/v1.16.3/browser_patches/webkit/UPSTREAM_CONFIG.sh) -> maps to https://commits.webkit.org/242973@main. Seems to be broken since at least commit https://commits.webkit.org/243863@main (from Playwright 1.17.0).
Comment 1 Sebastian 2022-03-10 05:42:45 PST
Created attachment 454344 [details]
image of the incorrect rendering
Comment 2 Sebastian 2022-03-10 05:43:13 PST
Created attachment 454345 [details]
image of the expected correct rendering
Comment 3 Radar WebKit Bug Importer 2022-03-10 10:20:45 PST
<rdar://problem/90106740>
Comment 4 Matt Woodrow 2022-03-13 14:16:16 PDT
I'm going to mark this as a duplicate of bug 237732, since that one is linked to a radar that's being tracked.

Thanks for the reduced test case!

*** This bug has been marked as a duplicate of bug 237732 ***