tor-browser

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

display-change-001.xht (1333B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
      2                       "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4   <head>
      5     <title>CSS Test: Updating layout on display changes</title>
      6     <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/>
      7     <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-04-07 -->
      8     <link rel="help"
      9           href="http://www.w3.org/TR/CSS21/visuren.html#display-prop" />
     10     <link rel="match" href="display-change-001-ref.xht" />
     11 
     12     <meta name="flags" content="ahem dom" />
     13     <meta http-equiv="Content-Script-Type" content="text/javascript" />
     14     <script type="text/javascript">
     15       function test() {
     16         document.getElementById('float').style.display = 'none';
     17       }
     18     </script>
     19     <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     20     <style type="text/css">
     21       #float { width: 100%; float:left; }
     22       div { background: red; color: green; font-size: 1.25em; width: 1em; font-family: Ahem; line-height: 1; }
     23     </style>
     24   </head>
     25   <body onload="test()">
     26     <p>Test passes if there is a small filled green square and <strong>no red</strong>.</p>
     27     <div id="float">X</div>
     28     <div>
     29       X
     30     </div>
     31   </body>
     32 </html>