font-size-rule-003

Font-size and font sizes available

WeasyPrint

This browser

Flags
ahem
Assertion
The user agent is free to choose a font-size from the font size table entries or round off to the closest 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 and font sizes available</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="The user agent is free to choose a font-size from the font size table entries or round off to the closest font size.">
 9         <style type="text/css">
10             div
11             {
12                 font-size: 18px;
13             }
14             span
15             {
16                 font-family: Ahem;
17             }
18             #span1
19             {
20                 font-size: 24px;
21             }
22             #span2
23             {
24                 font-size: larger;
25             }
26         </style>
27     </head>
28     <body>
29         <p>Test passes if the boxes below are the same size or the left box is bigger than the right.</p>
30         <div>
31             <span id="span1">X</span> <span id="span2">X</span>
32         </div>
33     </body>
34 </html>