font-size-rule-002

Font-size, relative-size 'larger'

WeasyPrint

This browser

Flags
ahem
Assertion
When font size is medium, the value 'larger' will make the font size equivalent to the 'large' font-size.

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: Font-size, relative-size 'larger'</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props">
 7         <meta name="flags" content="ahem">
 8         <meta name="assert" content="When font size is medium, the value 'larger' will make the font size equivalent to the 'large' font-size.">
 9         <style type="text/css">
10             div
11             {
12                 font-size: medium;
13             }
14             span
15             {
16                 font-family: Ahem;
17             }
18             #span1
19             {
20                 font-size: large;
21             }
22             #span2
23             {
24                 font-size: larger;
25             }
26         </style>
27     </head>
28     <body>
29         <p>Test passes if there is a single box below and the top edge is not jagged.</p>
30         <div>
31             <span id="span1">X</span><span id="span2">X</span>
32         </div>
33     </body>
34 </html>