outline-width-072.xht (1256B)
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: Outline-width - outline the box with a 5em solid outline</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/ui.html#propdef-outline-width" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/ui.html#dynamic-outlines" /> 8 <meta name="assert" content="The 'outline-width' property supports a nominal length value in 'em' units that sets the width of the outline." /> 9 <style type="text/css"> 10 #reference 11 { 12 border: solid green 5em; 13 margin-top: 10em; 14 width: 300px; 15 } 16 #test 17 { 18 margin: 5em 0 0 5em; 19 outline: solid green; 20 outline-width: 5em; 21 width: 300px; 22 } 23 </style> 24 </head> 25 <body> 26 <p>Test passes if the boxes below are the same size.</p> 27 <div id="test">Filler Text</div> 28 <div id="reference">Filler Text</div> 29 </body> 30 </html>