border-bottom-width-036.xht (2105B)
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-bottom-width using centimeters with a minimum plus one value, 1cm</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-05-22 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-border-bottom-width" /> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-width-properties" /> 9 <meta name="assert" content="The 'border-bottom-width' property supports a minimum plus one length value in centimeters that sets the width of the bottom border." /> 10 <style type="text/css"> 11 div 12 { 13 width: 50px; 14 } 15 .ref1, .ref2 16 { 17 position: absolute; 18 } 19 .ref1 20 { 21 background: red; 22 height: 37px; 23 z-index: -1; 24 } 25 .ref2 26 { 27 background: green; 28 height: 38px; 29 } 30 .test1, .test2 31 { 32 border-bottom-style: solid; 33 border-bottom-width: 1cm; 34 height: 0; 35 } 36 .test1 37 { 38 border-bottom-color: green; 39 } 40 .test2 41 { 42 border-bottom-color: red; 43 } 44 #parent 45 { 46 background: red; 47 height: 75px; 48 } 49 </style> 50 </head> 51 <body> 52 <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p> 53 <div id="parent"> 54 <div class="ref1"></div> 55 <div class="test1"></div> 56 <div class="ref2"></div> 57 <div class="test2"></div> 58 </div> 59 </body> 60 </html>