c543-txt-decor-000

text-decoration

WeasyPrint

This browser

Flags
image

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: text-decoration</title>
 5   <meta name="flags" content="image">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#text-decoration">
 7   <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
 8   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 9   <style type="text/css">
10    p { color: navy; }
11    .one {text-decoration: underline;}
12    .two {text-decoration: overline;}
13    .three {text-decoration: line-through;}
14    .four {text-decoration: blink;}
15    b.five {text-decoration: none;}
16    .six {text-decoration: underline overline;}
17    .seven {text-decoration: underline overline line-through;}
18    div, strong, img { color: red; }
19    .eight { color: white; }
20   </style>
21   <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-styling" title="15.4 Font styling: the 'font-style' property">
22  </head>
23  <body>
24   <p class="one"> This sentence should be underlined. </p>
25   <p class="two"> This sentence should be overlined. </p>
26   <p class="three"> This sentence should be stricken out. </p>
27   <p class="four"> This sentence should be blinking (if the UA supports that). </p>
28   <p class="one"> The sentence should be underlined. <b class="five">This sentence should be underlined</b>. </p>
29   <p class="six"> This sentence should be underlined and overlined. </p>
30   <p class="seven"> This sentence should be underlined, overlined, and stricken. </p>
31   <div class="seven"></div> <!-- there should be no red on this page -->
32   <p> There should be no red at the end of this line.<img src="support/swatch-white.png" alt="FAIL: Images required." class="one">&nbsp;</p>
33   <p class="one">
34    The text of this sentence and all<span> </span>its<span>&nbsp;</span>spaces (including the space between the images)
35    <img src="support/square-teal.png" alt="FAIL: Images required.">
36    <img src="support/square-purple.png" alt="FAIL: Images required.">
37    should be underlined, but the images themselves should <em>not</em> be underlined.
38   </p>
39   <p class="one">
40    This sentence should have a long blue underline including between the two
41    arrows here&rarr;<span class="eight"> FAIL FAIL FAIL FAIL </span>&larr;and here.
42   </p>
43   <p>There should be a long blue underline between here&rarr;<span class="one"> &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; </span> &larr;and here.</p>
44 </body>
45 </html>