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/text-align/text-align-last-justify-block-in-inline.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text: text-align-last justify applies to the line before a block level box inside an inline box</title>
<link rel="match" href="reference/text-align-last-justify-block-in-inline-ref.html">
<meta name="assert" content="A block level box inside an inline box starts a block, which is a forced line break. The line right before it is the last line before a forced line break and is therefore aligned according to text-align-last.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
.container {
font: 20px/1 Ahem;
width: 200px;
text-align-last: justify;
}
</style>
<div class="container"><span>XX XX<div>XXX</div>XX</span></div>