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