Bug 307587
| Summary: | [grid-lanes] display:grid subgrid should not contribute item sizes to grid-lanes parent | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Brandon <brandonstewart> |
| Component: | CSS | Assignee: | Brandon <brandonstewart> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | koivisto, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Brandon
When a subgrid uses display:grid (instead of display:grid-lanes) inside
a grid-lanes container, the subgrid's items should not contribute their
intrinsic sizes to the parent's track sizing algorithm. The subgrid
should be treated as a single leaf item whose size is computed
independently.
Previously, traverseSubgridTreeForIntrinsicSizing would traverse into
any subgrid regardless of its display type. Now it checks whether both
the parent and child are grid-lanes containers before traversing into
the subgrid's children.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/170168798>
Brandon
Pull request: https://github.com/WebKit/WebKit/pull/58433
EWS
Committed 308253@main (e63622220d8a): <https://commits.webkit.org/308253@main>
Reviewed commits have been landed. Closing PR #58433 and removing active labels.