text-decoration-089

text-decoration with inline 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 inline children</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/text/decoration/007.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#lining-striking-props">
 8   <style type="text/css">
 9    div { color: orange; text-decoration: underline; }
10    span { vertical-align: bottom; color: gray; }
11    .inline-block { display: inline-block; width: 5em; border: dotted blue; margin: 0.5em 0; }
12   </style>
13  </head>
14  <body>
15   <p>There should be a single orange line below, underneath the words
16   <em>LINE A</em> and <em>LINE B</em> that disappears within the dotted blue box.
17   If there are any lines under, inside, above, or on the blue box, then the
18   test has failed.</p>
19   <div>
20    <span>LINE A</span>
21    <span class="inline-block">CLEAR CLEAR CLEAR</span>
22    <span>LINE B</span>
23   </div>
24  </body>
25 </html>