summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/overflow-wrap/overflow-wrap-break-word-white-space-crash-002.html
blob: 085e5b6f12d6f9cf0ae1e0028be8cfeca5cc565f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!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/1001359">
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
.container {
  font-family: sans-serif;
  font-size: 14px;
  width: 680px;
  word-wrap: break-word;
}

spacer {
  display: inline-block;
  width: 620px;
}

pre-wrap {
  white-space: pre-wrap;
}

nowrap {
  white-space: nowrap;
}

inline-block {
  display: inline-block;
}
</style>
<body>
  <div class="container">
    <spacer></spacer>
    <nowrap><span><pre-wrap><inline-block></inline-block></pre-wrap></span>123456</nowrap>987654321
</div>
<script>
test(() => { });
</script>
</body>