haikuwebkit/LayoutTests/css2.1/t0905-c414-flt-00-d.html

32 lines
1.1 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>CSS 2.1 Test Suite: Floating Elements</title>
<style type="text/css">
p { color: navy; }
.control { padding: 1em; }
.control div { width: 10em; background: navy; color: yellow; }
.control div.right { margin-left: 5em; text-align: right; }
.test { width: 15em; margin: 1em; }
.test div { margin: 0; padding: 0; background: red; }
.test p { margin: 0; padding: 0; width: 10em; background: navy; color: yellow; }
.test p.left { float: left; text-align: left; }
.test p.right { float: right; text-align: right; }
</style>
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" title="9.5 Floats">
<link rel="help" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop" title="16.2 Alignment: the 'text-align' property">
</head>
<body>
<p>The two patterns below should be identical, with no red present.</p>
<div class="control">
<div class="left">  * </div>
<div class="right"> *  </div>
</div>
<div class="test">
<div>
<p class="left">  * </p>
<p class="right"> *  </p>
</div>
</div>
</body>
</html>