blob: 5fe6304b31798df88f8fc58c94d03ee3edcbf05a [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 the leading edge margin, border or padding of a span overflows the line,
| the line should still evaluate wrapping before the span.
body {
margin: 0px;
font-family: Roboto;
font-size: 20px;
.containing-block {
background-color: #03a9f4;
width: 106px;
.colored-padding {
background-color: #e1bee7;
padding: 0px 0px 0px 100px;
video {
background-color: #f50057;
width: 80px;
height: 20px;
.inline-block {
background-color: #aeea00;
display: inline-block;
width: 80px;
height: 20px;
<div class="containing-block">
<div>abcdefghij<span class="colored-padding">test</span></div>
<div>abcdefghij<span class="colored-padding"><span>test</span>test</span></div>
<div>abcde fghij <span class="colored-padding">test</span></div>
<div>abcde fghij <span class="colored-padding"><span>test</span>test</span></div>
<div>abcde fghij<span class="colored-padding"><video></video></span></div>
<div>abcde fghij<span class="colored-padding"><span><video></video></span></span></div>
<div>abcde fghij<span class="colored-padding"><span class="inline-block"></span></span></div>
<div>abcde fghij<span class="colored-padding"><span><span class="inline-block"></span></span></span></div>