servo/tests/ref/csswg/css21/block-formatting-contexts-005.htm
2014-09-08 20:21:42 -06:00

33 lines
No EOL
1.3 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>CSS Test: No padding or margin, left edges touch</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-09-26 -->
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-formatting">
<link rel="match" href="reference/block-formatting-contexts-005-ref.htm">
<meta name="flags" content="">
<meta name="assert" content="When there is no padding or margins on elements the left outer edge of the child box will touch the left edge of the containing block.">
<style type="text/css">
div
{
height: 1in;
}
#div1
{
border-left: solid 5px blue;
}
div div
{
border-left: solid 5px orange;
}
</style>
</head>
<body>
<p>Test passes if there is <strong>no space between</strong> the blue and orange lines.</p>
<div id="div1">
<div></div>
</div>
</body>
</html>