border-top-width-014.xht (1298B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Border-top-width using points with a minimum plus one value, 1pt</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-border-top-width" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-width-properties" /> 8 <meta name="assert" content="The 'border-top-width' property supports a minimum plus one length value in points that sets the width of the top border." /> 9 <style type="text/css"> 10 #wrapper 11 { 12 background: red; 13 height: 1pt; 14 } 15 #test 16 { 17 border-top-style: solid; 18 border-top-width: 1pt; 19 height: 0; 20 } 21 p 22 { 23 height: 40px; 24 } 25 </style> 26 </head> 27 <body> 28 <p>Test passes if there is a wide horizontal black line and <strong>no red</strong>.</p> 29 <div id="wrapper"> 30 <div id="test"></div> 31 </div> 32 </body> 33 </html>