summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/overflow-wrap/overflow-wrap-break-word-span-002.html
blob: 39426d0420287a730dcac47696bd69520e8a6b72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<title>CSS Text Test: overflow-wrap: break-word</title>
<link rel="author" title="Koji Ishii" href="kojii@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-break-word">
<meta name="assert" content="Test when the `break-word` value is applied to an inline element.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script><style>
div {
  font-size: 10px;
  line-height: 1;
  width: 5ch;
}
span {
  word-wrap: break-word;
}
</style>
<div id=container data-expected-height=20>12345678<span>90</span></div>

<script>
checkLayout('#container')
</script>