ttwf-css3background-border-color

border_color

WeasyPrint

This browser

Flags
image
Assertion
'Border-color' is a shorthand for the four 'border-*-color' properties. The four values set the top, right, bottom and left border, respectively. A missing left is the same as right, a missing bottom is the same as top, and a missing right is also the same as top.

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3     <title>CSS Backgrounds and Borders Test: border_color</title>
 4     <link href="mailto:disound@gmail.com" rel="author" title="disound">
 5     <link href="http://www.w3.org/TR/css3-background/#the-border-color" rel="help">
 6     <meta content="image" name="flags">
 7     <meta content="'Border-color' is a shorthand for the four 'border-*-color' properties. The four values set the top, right, bottom and left border, respectively. A missing left is the same as right, a missing bottom is the same as top, and a missing right is also the same as top." name="assert">
 8     <style>
 9         #ref {
10             background-color: white;
11             height: 160px;
12             width: 160px;
13         }
14         #test {
15             border: black solid 5px;
16             border-top-color: yellow;
17             border-right-color: black;
18             border-bottom-color: blue;
19             border-left-color: green;
20             bottom: 160px;
21             height: 100px;
22             padding: 25px;
23             position: relative;
24             width: 100px;
25         }
26     </style>
27   </head>
28   <body>
29     <p>Test passes if there is a white square, left border is green, bottom border is blue, right border is black, top border is yellow.</p>
30     <div id="ref"></div>
31     <div id="test"></div>
32   
33 </body></html>