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-justify-tabs-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>text-align: justify and preserved tabs</title>
<link rel='match' href='reference/text-align-justify-tabs-002-ref.html'>
<link rel='author' title='Jonathan Kew' href='mailto:jkew@mozilla.com'>
<meta name="assert" content="If an element’s white space is not collapsible ...
ensure that tab stops continue to line up as required by the white space processing rules.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
div {
font: 25px Ahem, monospace;
width: 30ch;
white-space: pre-wrap;
tab-size: 8;
border: 1px solid gray;
padding: 2px;
margin: 2px;
}
.test {
text-align: justify;
}
</style>
</head>
<body>
<p>The layout in the two boxes should be the same:</p>
<div>a b c	tab 1	tab 2 jklmno<br>pqrs</div>
<div class=test>a b c	tab 1	tab 2 jklmno pqrs</div>
</body>