Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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-001-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&#9;tab 1&#9;tab 2&#9;jklmnop</div>
<div class=test>a b c&#9;tab 1&#9;tab 2&#9;jklmnop</div>
</body>