Files
servo/tests/wpt/css-tests/css21_dev/html4/c5502-imrgn-r-002.htm

25 lines
1.1 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: margin-right</title>
<meta name="flags" content="ahem">
<link rel="help" href="http://www.w3.org/TR/REC-CSS1#margin-right">
<link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
<link rel="match" href="reference/c5502-imrgn-r-002-ref.htm">
<style type="text/css">
div { font: 15px/1 Ahem; margin: 1em; background: yellow; }
.three { width: 5em; height: 4em; background: red; }
.three p { color: white; background: white; }
.three span { margin-right: 4em; background: red; color: green; }
</style>
<link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties" title="8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin'">
</head>
<body>
<p>Test passes if there is a filled green square and no red.</p>
<div class="three">
<p>xx xx <span>xx xx</span> xx xx</p>
</div>
</body>
</html>