Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
            - /css/css-text/overflow-wrap/overflow-wrap-break-word-white-space-crash-002.html - WPT Dashboard Interop Dashboard
 
<!DOCTYPE html>
<title>CSS Text Test: A combination of `overflow-wrap: break-word` and `white-space` should not crash</title>
<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>