Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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-left-width using 'ex' units with a minimum minus one (negative) value, -1ex</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-05-30 -->
<meta name="flags" content="ahem invalid" />
<meta name="assert" content="The 'border-left-width' property does not support a negative length value in 'ex' units and resets to the initial value." />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style type="text/css">
div
{
border-left-style: solid;
font: 20px/1 Ahem;
height: 1in;
}
#reference
{
border-left-width: medium;
margin-top: 5px;
}
#test
{
border-left-style: solid;
border-left-width: -1ex;
}
</style>
<link rel="match" href="border-left-width-001-ref.xht" />
</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>