tor-browser

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

block-in-inline-004.xht (1312B)


      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 :hover</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/004.html" type="text/html"/>
      8   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop" />
      9   <meta name="flags" content="interact"/>
     10   <meta name="assert" content="A block that splits an inline still inherits
     11     from the inline, even in dynamic cases."/>
     12   <style type="text/css">
     13    .inline { color: blue; display: inline; }
     14    .block { display: block; }
     15    .inline:hover { color: green; }
     16   </style>
     17  </head>
     18  <body>
     19   <div class="block">
     20    <div class="inline">
     21     The text of all 3 sentences should become green when you hover over any text.
     22     <div class="block">
     23      The text of all 3 sentences should become green when you hover over any text.
     24     </div>
     25     The text of all 3 sentences should become green when you hover over any text.
     26    </div>
     27   </div>
     28  </body>
     29 </html>