Files
servo/tests/wpt/css-tests/css21_dev/html4/inline-formatting-context-017.htm

30 lines
1.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: Text-align 'justify' and space and word stretching</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2012-06-27 -->
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting">
<meta name="flags" content="ahem may">
<meta name="assert" content="If 'text-align' is set to 'justify' the user agent may stretch spaces and/or words.">
<style type="text/css">
div
{
color: orange;
font: 1em/1 Ahem;
text-align: justify;
width: 20em;
}
span
{
color: blue;
}
</style>
</head>
<body>
<p>Test passes if the rightmost orange stripe extends to the right of the rightmost blue stripe.</p>
<div>
XXXX XXXX XXXXXX <span>XXXXX XXXXXX XXX</span>
</div>
</body>
</html>