Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit cffb370

Browse files
kojiishichromium-wpt-export-bot
authored andcommitted
[LayoutNG] Ensure OOF is propagated when ellipsizing
This patch ensures OOF within truncated inline-blocks are propagated when 'text-overflow: ellipsis'. Bug: 945690 Change-Id: I856469cc76e083ad3be2e82cde8f571a9467478a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1539483 Commit-Queue: Koji Ishii <[email protected]> Reviewed-by: Aleks Totic <[email protected]> Cr-Commit-Position: refs/heads/master@{#644683}
1 parent fbd91b7 commit cffb370

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!DOCTYPE html>
2+
<title>Ellipsizing inline blocks that have absolute positioned objects should not crash</title>
3+
<link rel="author" href="[email protected]">
4+
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=945690">
5+
<meta name="assert" content="Ellipsizing inline blocks that have absolute positioned objects should not crash">
6+
<style>
7+
div {
8+
text-overflow: ellipsis;
9+
overflow: hidden;
10+
white-space: nowrap;
11+
width: 5ch;
12+
}
13+
.inline-block {
14+
display: inline-block;
15+
}
16+
.abs {
17+
position: absolute;
18+
}
19+
</style>
20+
<script src="/resources/testharness.js"></script>
21+
<script src="/resources/testharnessreport.js"></script>
22+
<div>
23+
12345678
24+
<span class="inline-block">
25+
<span class="abs">abs</span>
26+
</span>
27+
</div>
28+
<div>
29+
12345678
30+
<span class="inline-block">
31+
999
32+
<span class="abs">abs</span>
33+
</span>
34+
</div>
35+
<div>
36+
12
37+
<span class="inline-block">
38+
3456789
39+
<span class="abs">abs</span>
40+
</span>
41+
</div>
42+
<script>
43+
test(() => {}, 'No crash or DCHECK failure');
44+
</script>

0 commit comments

Comments
 (0)