blob: a01808a694cf1adaf8f18eb422d228cacabdc5b1 [file] [log] [blame]
<!DOCTYPE html>
<!--
| Wrapping is only performed at an allowed break point, called a soft wrap
| opportunity. In most writing systems, in the absence of hyphenation a soft
| wrap opportunity occurs only at word boundaries.
| https://www.w3.org/TR/css3-text/#soft-wrap-opportunity
| https://www.w3.org/TR/css-text-3/#line-break-details
|
| When a soft wrap segment is being checked, leading white space that will
| collapsed should not be included in the width when determining whether the
| segment can fit on the line.
-->
<html>
<head>
<style>
body {
margin: 0px;
font-family: Roboto;
font-size: 17px;
}
div {
overflow-wrap: normal;
}
.containing-block {
background-color: #03a9f4;
width: 202px;
}
.padding-span {
padding: 0px 0px 0px 175px;
}
.colored-span {
background-color: #aeea00;
}
</style>
</head>
<body>
<div class="containing-block">
<div><span class="padding-span colored-span"></span> AB CD</div>
<div><span><span class="padding-span colored-span"></span> AB CD</span></div>
<div><span class="padding-span colored-span"></span><span> AB CD</span></div>
<div><span><span class="padding-span colored-span"></span><span> AB CD</span></span></div>
<div><span class="colored-span">abc def ghi jkl mno pqr </span> AB CD</div>
<div><span><span class="colored-span">abc def ghi jkl mno pqr </span> AB CD</span></div>
<div><span class="colored-span">abc def ghi jkl mno pqr </span><span> AB CD</span></div>
<div><span><span class="colored-span">abc def ghi jkl mno pqr </span><span> AB CD</span></span></div>
</div>
</body>
</html>