Skip to content

Commit 7b86ff4

Browse files
danielsakhapovmoz-wptsync-bot
authored andcommitted
Bug 1950081 [wpt PR 50904] - [carousel] Fix AttachLayoutTree for ::scroll-marker expecting parent, a=testonly
Automatic update from web-platform-tests [carousel] Fix AttachLayoutTree for ::scroll-marker expecting parent If ::scroll-marker is inside the element that requires style recalc, but not layout, context.parent is nullptr. So, we have to if() attachment instead of CHECK(context.parent). Fixed: 394980089 Change-Id: Iefdc99a1b65cabeb91d1cf5d7f79e47a0a787e0a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6298048 Reviewed-by: Rune Lillesveen <[email protected]> Commit-Queue: Daniil Sakhapov <[email protected]> Cr-Commit-Position: refs/heads/main@{#1423840} -- wpt-commits: 6f1558a74c6ef1f52085a594cae98744b260ef6a wpt-pr: 50904
1 parent d7d5520 commit 7b86ff4

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<link rel="help" href="crbug.com/394980089">
3+
<style>
4+
#scroller { overflow: scroll; scroll-marker-group: after; }
5+
#item::scroll-marker { content: "X" }
6+
</style>
7+
<div id="scroller">
8+
<canvas>
9+
<div id="item">You don't see me</div>
10+
</canvas>
11+
</div>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<link rel="help" href="crbug.com/394980089">
3+
<style>
4+
#scroller {
5+
overflow: scroll;
6+
scroll-marker-group: after;
7+
}
8+
#scroller div::scroll-marker {
9+
content: counter(test);
10+
}
11+
</style>
12+
<select>
13+
<div id="scroller">
14+
<div></div>
15+
</div>
16+
</select>

0 commit comments

Comments
 (0)