commit 45e3bf283a7b1b7fa04f82ec756878b03d3618a7
parent d6371b30c89eb3fa9e02a5fcd84585eb7b255b4f
Author: Daniil Sakhapov <sakhapov@chromium.org>
Date: Mon, 5 Jan 2026 10:23:28 +0000
Bug 2008361 [wpt PR 56962] - Fix scroll-target-group crash on inline ancestor of target, a=testonly
Automatic update from web-platform-tests
Fix scroll-target-group crash on inline ancestor of target
Use LayoutObject::ContainingScrollContainer() instead of ParentBox().
Fixed: 443283020
Change-Id: I5610e8ca5471499d1734497fdada0ac9563fd315
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7367716
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1563891}
--
wpt-commits: 5197e13626417653ca7d2b92afc29eac6dc2026d
wpt-pr: 56962
Diffstat:
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/css/css-overflow/scroll-target-group-inline-crash.html b/testing/web-platform/tests/css/css-overflow/scroll-target-group-inline-crash.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Overflow Test: scroll-target-group with inline parent of the target doesn't crash</title>
+<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-target-group">
+<style>
+ nav {
+ scroll-target-group: auto;
+ }
+</style>
+<span>
+ <div id="target">Target element in span</div>
+</span>
+<nav>
+ <a href="#target">Anchor to target</a>
+</nav>