blob: 40ff19c39d0c052ee384c523168def2137d3b702 [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.
| When a soft wrap segment is being checked, trailing white space that will
| collapsed should not be included in the width when determining whether the
| segment can fit on the line.
body {
margin: 0px;
font-family: Roboto;
font-size: 20px;
.containing-block {
background-color: #03a9f4;
width: 106px;
.colored-padding {
background-color: #f50057;
padding: 0px 0px 0px 2px;
<div class="containing-block">
<div>abcdefghijk <span class="colored-padding"></span></div>
<div>abcdefghijk <span> </span> <span> </span> <span class="colored-padding"></span></div>
<div><span>abcdefghijk <span class="colored-padding"></span></span></div>
<div><span>abcdefghijk <span> </span> <span> </span> <span class="colored-padding"></span></span></div>