ttwf-css3background-border-color-shorthand-missing-left

border_color_shorthand_missing_left

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_shorthand_missing_left</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-color: yellow black blue;
17             bottom: 160px;
18             height: 100px;
19             padding: 25px;
20             position: relative;
21             width: 100px;
22         }
23     </style>
24   </head>
25   <body>
26     <p>Test passes if there is a white square, <strong>left border is black</strong>, bottom border is blue, right border is black, top border is yellow.</p>
27     <div id="ref"></div>
28     <div id="test"></div>
29   
30 </body></html>