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-040.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 centimeters with a nominal value with a plus sign, +2.54cm</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-006-ref.xht" />
<meta name="assert" content="The 'border-right-width' property supports a nominal length value in centimeters that has a plus sign before it." />
<style type="text/css">
div
{
height: 1in;
}
#reference
{
background-color: black;
width: 1in;
margin-top: 5px;
}
#test
{
border-right-style: solid;
border-right-width: +2.54cm;
width: 0;
}
</style>
</head>
<body>
<p>Test passes if the 2 black squares have the <strong>same width</strong>.</p>
<div id="test"></div>
<div id="reference"></div>
</body>
</html>