fune/testing/web-platform/tests/css/css-text/overflow-wrap/overflow-wrap-break-word-white-space-crash.html
Koji Ishii 9b652f79d4 Bug 1578451 [wpt PR 18801] - [LayoutNG] Fix NGLineBreaker::ShouldHangTraillingSpaces, a=testonly
Automatic update from web-platform-tests
[LayoutNG] Fix NGLineBreaker::ShouldHangTraillingSpaces

This patch fixes |NGLineBreaker::ShouldHangTraillingSpaces|
to check the style of the given item, rather than the
|auto_wrap_| value which is from the style of the item
currently being handled.

Using the incorrect style has caused an infinite loop under
a specific pattern.

Bug: 988832
Change-Id: I907116dc239073f207c7c607953c98f722071150
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1782214
Reviewed-by: Emil A Eklund <eae@chromium.org>
Commit-Queue: Emil A Eklund <eae@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#692727}

--

wpt-commits: 46e85380444eacc080681e66b629114bd3292d5b
wpt-pr: 18801
2019-09-09 11:54:37 +01:00

28 lines
756 B
HTML

<!DOCTYPE html>
<title>CSS Text Test: A combination of `overflow-wrap: break-word` and `white-space` should not crash</title>
<link rel="help" href="https://crbug.com/988832">
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
div {
width: 10ch;
border: 1px blue solid;
overflow-wrap: break-word;
}
inline-block {
display: inline-block;
position: relative;
width: 3ch;
height: 1em;
background: orange;
}
</style>
<body>
<div>
123 56 <span style="white-space: pre"><inline-block></inline-block> <span style="white-space: normal">Flash</span></span> and
</div>
<script>
test(() => { });
</script>
</body>