block-in-inline-004

Blocks within inlines: Simple with :hover

WeasyPrint

This browser

Flags
interact
Assertion
A block that splits an inline still inherits from the inline, even in dynamic cases.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 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="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/ib/004.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop">
 8   <meta name="flags" content="interact">
 9   <meta name="assert" content="A block that splits an inline still inherits     from the inline, even in dynamic cases.">
10   <style type="text/css">
11    .inline { color: blue; display: inline; }
12    .block { display: block; } 
13    .inline:hover { color: green; }
14   </style>
15  </head>
16  <body>
17   <div class="block">
18    <div class="inline">
19     This line should go green when you hover over any of the text on this page.
20     <div class="block">
21      This line should go green when you hover over any of the text on this page.
22     </div>
23     This line should go green when you hover over any of the text on this page.
24    </div>
25   </div>
26  </body>
27 </html>