border-width-008.xht (1710B)
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-width shorthand property set to 'inherit', inheriting four values</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-25 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-border-width" /> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-width-properties" /> 9 <link rel="match" href="border-width-008-ref.xht" /> 10 11 <meta name="assert" content="The 'border-width' property set to 'inherit' correctly inherits the four values specified on the parent element." /> 12 <style type="text/css"> 13 #parent 14 { 15 border-color: transparent; 16 border-style: solid; 17 border-width: 0.5in 0.25in 0.75in 1in; 18 } 19 #test 20 { 21 border-style: solid; 22 border-width: inherit; 23 width: 0; 24 } 25 #reference 26 { 27 background-color: black; 28 height: 1.25in; 29 margin-top: 5px; 30 width: 1.25in; 31 } 32 </style> 33 </head> 34 <body> 35 <p>Test passes if the 2 filled black rectangles have the <strong>same size</strong>.</p> 36 <div id="parent"> 37 <div id="test"></div> 38 <div id="reference"></div> 39 </div> 40 </body> 41 </html>