tor-browser

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

block-in-inline-006.xht (1328B)


      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: Blocks within inlines: Simple with dynamic class changes</title>
      5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
      6   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-03-07 -->
      7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/ib/006.html" type="text/html"/>
      8   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop" />
      9   <meta name="flags" content="dom interact"/>
     10   <style type="text/css">
     11    body { color: blue; }
     12    .inline { display: inline; }
     13    .block { display: block; }
     14   </style>
     15   <meta http-equiv="Content-Script-Type" content="text/javascript"/>
     16   <script type="text/javascript">
     17    function clicked() {
     18      document.getElementById('test').className = document.getElementById('test').className == 'inline' ? 'block' : 'inline';
     19    }
     20   </script>
     21  </head>
     22  <body onclick="clicked()">
     23   <div class="block">
     24    <div class="inline">
     25     This text should split into
     26     <div class="inline" id="test">
     27      three separate lines when
     28     </div>
     29     you click on the text.
     30    </div>
     31   </div>
     32  </body>
     33 </html>