text-decoration-088

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/008.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 { position: relative; }
11    .test { color: blue; text-decoration: underline; }
12    .block { display: block; }
13    .float { float: right; }
14    .pos { position: absolute; top: 5em; right: 0; }
15   </style>
16  </head>
17  <body>
18   <div>
19    <a href="data:,PASS" class="test"> This text should be underlined.
20     <span class="block"> This text should be underlined. </span>
21     <span class="float"> This text should NOT be underlined. </span>
22     <span class="pos"> This text should NOT be underlined. </span>
23    </a>
24   </div>
25  </body>
26 </html>