border-right-width-095.xht (1475B)
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 set to inherit</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-24 --> 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 <link rel="match" href="border-right-width-095-ref.xht" /> 10 11 <meta name="assert" content="The 'border-right-width' property supports a value of inherit and gets its computed value from its parent." /> 12 <style type="text/css"> 13 body 14 { 15 border-right-style: solid; 16 border-right-width: 1in; 17 font: 1em/1.25 serif; 18 padding-right: 20px; 19 } 20 21 p 22 { 23 font: 1em/1.25 serif; 24 margin: 1em 0; 25 } 26 27 div 28 { 29 border-right-style: solid; 30 border-right-width: inherit; 31 height: 1in; 32 } 33 </style> 34 </head> 35 <body> 36 <p>Test passes if there is a black square next to a black rectangle.</p> 37 <div></div> 38 </body> 39 </html>