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-080.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 'ex' units with a minimum plus one value, 1ex</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-025-ref.xht" />
<meta name="flags" content="ahem" />
<meta name="assert" content="The 'border-top-width' property supports a minimum plus one length value in 'ex' units that sets the width of the top border." />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style type="text/css">
div
{
font: 20px/1 Ahem;
}
#wrapper
{
background: red;
height: 1ex;
}
#test
{
border-top-style: solid;
border-top-width: 1ex;
height: 0;
}
</style>
</head>
<body>
<p>Test passes if there is a wide black stripe and <strong>no red</strong>.</p>
<div id="wrapper">
<div id="test"></div>
</div>
</body>
</html>