tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

overflow-applies-to-008.xht (1644B)


      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: overflow applied to elements with 'display' set to 'inline'</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-08-09 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow" />
      8         <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow" />
      9         <link rel="match" href="overflow-applies-to-001-ref.xht" />
     10 
     11         <meta name="flags" content="ahem" />
     12         <meta name="assert" content="The 'overflow' property does not apply to elements with 'display' set to 'inline'." />
     13         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     14         <style type="text/css">
     15             #parent
     16             {
     17                 border: 5px solid transparent;
     18                 color: white;
     19                 font: 20px/1em Ahem;
     20                 width: 5em;
     21             }
     22             div div
     23             {
     24                 display: inline;
     25                 overflow: hidden;
     26                 white-space: nowrap;
     27             }
     28             #span2
     29             {
     30                 color: green;
     31             }
     32         </style>
     33     </head>
     34     <body>
     35         <p>Test passes if there is a short green bar.</p>
     36         <div id="parent">
     37             <div><span>XXXXX</span><span id="span2">XXXXX</span></div>
     38         </div>
     39     </body>
     40 </html>