text-decoration-thickness-001

Text-decoration underline across elements with different font sizes

WeasyPrint

This browser

Assertion
Thickness and baseline are the same for all children of elements with 'text-decoration' set.

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 underline across elements with different font sizes</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#lining-striking-props">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Thickness and baseline are the same for all children of elements with 'text-decoration' set.">
 9         <style type="text/css">
10             div
11             {
12                 text-decoration: underline;
13             }
14             #span1
15             {
16                 font-size: 50pt;
17             }
18             #span2
19             {
20                 font-size: 30pt;
21             }
22             #span3
23             {
24                 font-size: 20pt;
25             }
26         </style>
27     </head>
28     <body>
29         <p>Test passes if there is a contiguous line of the same thickness beneath all the "Filler Text" below.</p>
30         <div>
31             <span id="span1">Filler Text</span>
32             <span id="span2">Filler Text</span>
33             <span id="span3">Filler Text</span>
34         </div>
35     </body>
36 </html>