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/white-space/seg-break-transformation-018.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 3 Test: inline element boundary and segment break transformations</title>
<link rel=match href="../../reference/ref-filled-green-100px-square.xht">
<meta name="assert" content="intervening inline box boundaries must be ignored for segment break transformations">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
font: 20px/1 Ahem;
color: green;
}
#b { border-right: solid 20px green; }
#p { padding-right: 20px; background: green; }
#m { margin-right: 20px; }
#m2 { margin-right: -20px; }
#red {
width: 100px;
height: 100px;
background: red;
position: absolute;
z-index: -1;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.
<div id=red></div>
<div>aa​
bbb</div>
<div>aa<span>​</span>
bbb</div>
<div>aa<span id=b>​</span>
bb</div>
<div>aa<span id=p>​</span>
bb</div>
<div>aa<span id=m>​</span><span id=m2></span>
bbb</div>