font-size-091

Font-size using percentages with a minimum plus one value, 1%

WeasyPrint

This browser

Flags
ahem
Assertion
The 'font-size' property sets a minimum plus one length value in percentages.

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 using percentages with a minimum plus one value, 1%</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#propdef-font-size">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props">
 8         <meta name="flags" content="ahem">
 9         <meta name="assert" content="The 'font-size' property sets a minimum plus one length value in percentages.">
10         <style type="text/css">
11             #reference
12             {
13                 font: 2px/1em Ahem;
14             }
15             #parent
16             {
17                 font: 200px/5px Ahem;
18             }
19             #test
20             {
21                 font-size: 1%;
22             }
23         </style>
24     </head>
25     <body>
26         <p>Test passes if the two dots (boxes) below are the same size.</p>
27         <div id="reference">X</div>
28         <div id="parent">
29             <div id="test">X</div>
30         </div>
31     </body>
32 </html>