text-decoration-085

text-decoration with block children

WeasyPrint

This browser

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html lang="en">
 3  <head>
 4   <title>CSS Test: text-decoration with block children</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/text/decoration/005.html" type="text/html">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#lining-striking-props">
 9   <style type="text/css">
10    div { color: blue; text-decoration: underline; position: relative; }
11    .block { display: block; }
12    .float { float: right; }
13    .pos { position: absolute; top: 4em; right: 0; }
14   </style>
15  </head>
16  <body>
17   <div>
18    <span class="test"> This text should be underlined.
19     <span class="block"> This text should be underlined. </span>
20     <span class="float"> This text should NOT be underlined. </span>
21     <span class="pos"> This text should NOT be underlined. </span>
22    </span>
23   </div>
24  </body>
25 </html>