forked from mirrors/gecko-dev
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
28 lines
756 B
HTML
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>
|