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-right-width-001.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-right-width using pixels with a minimum minus one (negative) value, -1px</title>
<link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-23 -->
<link rel="match" href="border-left-width-001-ref.xht" />
<meta name="flags" content="invalid" />
<meta name="assert" content="The 'border-right-width' property does not support a negative length value in pixels and resets to the initial value." />
<style type="text/css">
div
{
border-right-style: solid;
height: 1in;
width: 0;
}
#reference
{
border-right-width: medium;
margin-top: 5px;
}
#test
{
border-right-style: solid;
border-right-width: -1px;
}
</style>
</head>
<body>
<p>Test passes if the 2 black lines have the <strong>same width</strong>.</p>
<div id="test"></div>
<div id="reference"></div>
</body>
</html>