32 lines
1.2 KiB
HTML
32 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: Inline replaced elements with 'margin-top' and 'margin-bottom' as 'auto'</title>
|
|
<link rel="author" title="Microsoft" href="http://www.microsoft.com/">
|
|
<link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height">
|
|
<meta name="flags" content="image">
|
|
<meta name="assert" content="An inline replaced elements' used value of 'margin-top' and/or 'margin-bottom' set to 'auto' is '0'.">
|
|
<style type="text/css">
|
|
div
|
|
{
|
|
border-bottom: solid orange;
|
|
border-top: solid orange;
|
|
line-height: 0;
|
|
width: 1in;
|
|
}
|
|
img
|
|
{
|
|
display: inline;
|
|
margin-bottom: auto;
|
|
margin-top: auto;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>Test passes if there is no white space between the blue box below and the orange lines.</p>
|
|
<div>
|
|
<img alt="blue 15x15" src="resources/blue15x15.png">
|
|
</div>
|
|
</body>
|
|
</html>
|