Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/CSS2/borders/border-top-width-061.xht - WPT Dashboard Interop Dashboard
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Test: Border-top-width using inches with a nominal value, 3in</title>
<link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-24 -->
<link rel="match" href="border-bottom-width-061-ref.xht" />
<meta name="assert" content="The 'border-top-width' property supports a nominal length value in inches that sets the width of the top border." />
<style type="text/css">
div
{
display: inline-block;
width: 1in;
}
#reference
{
background-color: black;
height: 3in;
margin-left: 5px;
}
#test
{
border-top-style: solid;
border-top-width: 3in;
}
</style>
</head>
<body>
<p>Test passes if the 2 filled black rectangles have the <strong>same height</strong>.</p>
<div id="test"></div>
<div id="reference"></div>
</body>
</html>