ttwf-css3background-border-style-shorthand-missing-left

border_style

WeasyPrint

This browser

Flags
image
Assertion
'Border-style' is a shorthand for the other four. Its 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_style</title>
 4     <link href="mailto:disound@gmail.com" rel="author" title="disound">
 5     <link href="http://www.w3.org/TR/css3-background/#the-border-style" rel="help">
 6     <meta content="image" name="flags">
 7     <meta content="'Border-style' is a shorthand for the other four. Its 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-style: solid dotted dashed;
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 style is dotted</strong>, bottom border style is dashed, right border style is dotted, top border style is solid.</p>
27     <div id="ref"></div>
28     <div id="test"></div>
29   
30 
31 </body></html>