Bug 1540138 [wpt PR 16104] - [LayoutNG] Ensure OOF is propagated when ellipsizing, a=testonly
authorKoji Ishii <kojii@chromium.org>
Thu, 18 Apr 2019 11:56:16 +0000
changeset 529933 2fef7bad0e2ededcc4b3f9a219b25f9b5562b961
parent 529932 7abb425884aa69edf08cf3ff86a8dea7b87141c9
child 529934 14d73aa2250a867a44bf62cb8071e48258cd140e
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1540138, 16104, 945690, 1539483, 644683
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1540138 [wpt PR 16104] - [LayoutNG] Ensure OOF is propagated when ellipsizing, a=testonly Automatic update from web-platform-tests [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 <kojii@chromium.org> Reviewed-by: Aleks Totic <atotic@chromium.org> Cr-Commit-Position: refs/heads/master@{#644683} -- wpt-commits: cffb37053001d690e11f8bdb54895d78788923a2 wpt-pr: 16104
testing/web-platform/tests/css/css-ui/text-overflow-ellipsis-abspos-in-inline-block-crash-001.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-ui/text-overflow-ellipsis-abspos-in-inline-block-crash-001.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<title>Ellipsizing inline blocks that have absolute positioned objects should not crash</title>
+<link rel="author" href="kojii@chromium.org">
+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=945690">
+<meta name="assert" content="Ellipsizing inline blocks that have absolute positioned objects should not crash">
+<style>
+div {
+  text-overflow: ellipsis;
+  overflow: hidden;
+  white-space: nowrap;
+  width: 5ch;
+}
+.inline-block {
+  display: inline-block;
+}
+.abs {
+  position: absolute;
+}
+</style>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div>
+  12345678
+  <span class="inline-block">
+    <span class="abs">abs</span>
+  </span>
+</div>
+<div>
+  12345678
+  <span class="inline-block">
+    999
+    <span class="abs">abs</span>
+  </span>
+</div>
+<div>
+  12
+  <span class="inline-block">
+    3456789
+    <span class="abs">abs</span>
+  </span>
+</div>
+<script>
+test(() => {}, 'No crash or DCHECK failure');
+</script>