ttwf-css3background-border-style-shorthand-missing-bottom.htm (1233B)
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-style: solid dotted; 18 bottom: 160px; 19 height: 100px; 20 padding: 25px; 21 position: relative; 22 width: 100px; 23 } 24 </style> 25 </head> 26 <body> 27 <p>Test passes if there is a white square, left border style is dotted, <strong>bottom border style is solid</strong>, right border style is dotted, top border style is solid.</p> 28 <div id="ref"></div> 29 <div id="test"></div> 30 </body> 31 </html>