commit 5db3d6b22f0069ddeb8e8f45e22abb9b9f27ce09
parent fe2c6dff9b187a61f6f6fa6dc9d9e40bbd11106d
Author: Sam Davis Omekara Jr. <samomekarajr@microsoft.com>
Date: Tue, 21 Oct 2025 10:29:44 +0000
Bug 1994551 [wpt PR 55462] - [Gap Decorations]: Resolve crash related to collapsed tracks, a=testonly
Automatic update from web-platform-tests
[Gap Decorations]: Resolve crash related to collapsed tracks
This CL addresses a bug involving collapsed tracks with grid gap
decorations during fragmentation. In crrev.com/c/7000980, we previously
skipped building gaps for ranges with collapsed tracks but did not
adjust the gap index-to-set structure accordingly. This CL ensures that
entries are not added for ranges without sets, which occurs when tracks
are collapsed.
Bug: 450776548
Change-Id: I3196e279a723fc8a623c678e0188b5f75aa99e70
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7040524
Commit-Queue: Sam Davis Omekara <samomekarajr@microsoft.com>
Reviewed-by: Alison Maher <almaher@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1530515}
--
wpt-commits: bda4a4698562f88fc6dcdd72964fda0a69e6eda2
wpt-pr: 55462
Diffstat:
1 file changed, 24 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/css/css-gaps/grid/fragmentation/grid-gap-decorations-fragmentation-019-crash.html b/testing/web-platform/tests/css/css-gaps/grid/fragmentation/grid-gap-decorations-fragmentation-019-crash.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<title>
+ Avoid crash when we have collapsed tracks due to auto-fit.
+</title>
+<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11520">
+<link rel="author" title="Sam Davis Omekara Jr." href="mailto:samomekarajr@microsoft.com">
+<style>
+ .multi-col {
+ columns: 3;
+ column-fill: auto;
+ height: 100px;
+ }
+ .grid-container {
+ display: grid;
+ height: 200px;
+ grid-template-rows: repeat(auto-fit, 20px);
+ align-content: space-evenly;
+ }
+</style>
+<div class="multi-col">
+ <div class="grid-container">
+ <div style="width: 10px; height: 15px; grid-row: 3;"> </div>
+ </div>
+</div>