outline-width-078.xht (1454B)
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 -1ex 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="flags" content="invalid" /> 9 <meta name="assert" content="The 'outline-width' property does not support a negative length value in 'ex' units and is ignored." /> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type="text/css"> 12 div 13 { 14 font: 20px/1 Ahem; 15 height: 1em; 16 width: 300px; 17 } 18 #test 19 { 20 margin: 1em 0 0 1em; 21 outline: solid green; 22 outline-width: 1em; 23 outline-width: -1ex; 24 } 25 #reference 26 { 27 border: solid green 1em; 28 margin-top: 25px; 29 } 30 </style> 31 </head> 32 <body> 33 <p>Test passes if the two boxes look the same.</p> 34 <div id="test"></div> 35 <div id="reference"></div> 36 </body> 37 </html>