ttwf-css3background-border-style.htm (1334B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Backgrounds and Borders Test: border_style</title> 5 <link rel="author" title="disound" href="mailto:disound@gmail.com" /> 6 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-border-style" /> 7 <meta name="flags" content="image" /> 8 <meta name="assert" 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." /> 9 <style> 10 #ref { 11 background-color: white; 12 height: 160px; 13 width: 160px; 14 } 15 #test { 16 border: black solid 5px; 17 border-top-style: solid; 18 border-right-style: dotted; 19 border-bottom-style: dashed; 20 border-left-style: double; 21 bottom: 160px; 22 height: 100px; 23 padding: 25px; 24 position: relative; 25 width: 100px; 26 } 27 </style> 28 </head> 29 <body> 30 <p>Test passes if there is a white square, left border style is double, bottom border style is dashed, right border style is dotted, top border style is solid.</p> 31 <div id="ref"></div> 32 <div id="test"></div> 33 </body> 34 </html>