Raw File
border-color-005.xht
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>CSS Test: Border-color with a transparent border</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-24 -->
        <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-border-color" />
        <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-color-properties" />
        <link rel="match" href="border-color-005-ref.xht" />

        <meta name="flags" content="" />
        <meta name="assert" content="The 'border-color' property set to 'transparent' is supported and applies to all sides of an element." />
        <style type="text/css">
            #wrapper
            {
                position: relative;
            }
            #div1, #test
            {
                border-style: solid;
                border-width: 10px;
                height: 1in;
                width: 1in;
                position: absolute;
                top: 0;
                left: 0;
            }
            #div1
            {
                border-color: green;
            }
            #test
            {
                border-color: transparent;
            }
        </style>
    </head>
    <body>
        <p>Test passes if there is a hollow green square.</p>
        <div id="wrapper">
            <div id="div1"></div>
            <div id="test"></div>
        </div>
    </body>
</html>
back to top