tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

font-030.xht (1991B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3     <head>
      4         <title>CSS Test: Font shorthand set using the values font-variant, font-weight, font-style, font-size, line-height and font-family</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" />
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-shorthand" />
      8         <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-prop"/>
      9         <link rel="match" href="../reference/no_red_bold_italic_small-caps_ahem.html"/>
     10         <meta name="flags" content="ahem" />
     11         <meta name="assert" content="The 'font' shorthand property accepts and sets font-style, font-variant, font-weight, font-style, font-size, line-height and font-family." />
     12         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     13         <style type="text/css">
     14             #wrapper
     15             {
     16                 position: relative;
     17             }
     18             #test
     19             {
     20                 font: small-caps bold italic 1in/1em Ahem;
     21                 position: absolute;
     22             }
     23             #reference
     24             {
     25                 color: red;
     26                 font-family: Ahem;
     27                 font-size: 1in;
     28                 font-style: italic;
     29                 font-variant: small-caps;
     30                 font-weight: bold;
     31                 height: 1in;
     32                 left: 0;
     33                 line-height: 1em;
     34                 position: absolute;
     35                 top: 0;
     36                 width: 1in;
     37             }
     38         </style>
     39     </head>
     40     <body>
     41         <p>Test passes if there is no red visible on the page except for antialiasing.</p>
     42         <div id="wrapper">
     43             <div id="reference">x</div>
     44             <div id="test">x</div>
     45         </div>
     46     </body>
     47 </html>