tor-browser

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

font-147.xht (2800B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3  <head>
      4   <title>CSS Test: CSS: unquoted 'font-family' syntax (tested with 'font')</title>
      5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
      6   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/fonts/ahem/004.xml" type="application/xhtml+xml"/>
      7   <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-family-prop" />
      8   <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-family-prop"/>
      9   <link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-prop"/>
     10   <meta name="flags" content="ahem"/>
     11   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12   <style type="text/css">
     13    /* valids */
     14    .a { font: 10px Ahem Black, Ahem;  }
     15    .b { font: 10px inherit, Ahem;  }
     16    .c { font: 10px \" , Ahem; }
     17   </style>
     18   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     19   <style type="text/css">
     20    .d { font: 10px 32px, Ahem;  }
     21    .e { font: 10px -test, Ahem;  }
     22    /* invalids */
     23    .f { font: 32px :-), sans-serif;  }
     24    .g { font: 32px , sans-serif;  }
     25    .h { font: 32px (), sans-serif;  }
     26    .i { font: 32px {}, sans-serif;  }
     27    .j { font: 32px [], sans-serif;  }
     28    .k { font: 32px a(), sans-serif;  }
     29    .l { font: 32px a{}, sans-serif;  }
     30    .m { font: 32px a[], sans-serif;  }
     31    .n { font: 32px; }
     32    .o { font: 32px \"", sans-serif;  }
     33   </style>
     34   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     35   <style type="text/css">
     36    .P { font: 32px \\", sans-serif;  }
     37   </style>
     38   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     39   <style type="text/css">
     40    /* environment */
     41    * { margin: 0; padding: 0; border: none; line-height: 1; }
     42    body { margin: 1em; position: relative; }
     43    .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
     44    .overlapper { position: absolute; left: 0; top: 1em; height: 160px; width: 60px; background: green; z-index: 1; -moz-opacity: 90%; }
     45    .valid { font: 32px sans-serif; color: red; }
     46    .invalid { font: 10px Ahem; color: red; }
     47   </style>
     48  </head>
     49  <body>
     50   <div class="control">Ahem_font_required_for_this_test.</div>
     51   <div class="overlapper"/>
     52   <div class="valid">
     53    <p class="a">a:FAIL</p>
     54    <p class="b">b:FAIL</p>
     55    <p class="c">c:FAIL</p>
     56    <p class="d">d:FAIL</p>
     57    <p class="e">e:FAIL</p>
     58   </div>
     59   <div class="invalid">
     60    <p class="f">f:FAIL</p>
     61    <p class="g">g:FAIL</p>
     62    <p class="h">h:FAIL</p>
     63    <p class="i">i:FAIL</p>
     64    <p class="j">j:FAIL</p>
     65    <p class="k">k:FAIL</p>
     66    <p class="l">l:FAIL</p>
     67    <p class="m">m:FAIL</p>
     68    <p class="n">n:FAIL</p>
     69    <p class="o">o:FAIL</p>
     70    <p class="P">P:FAIL</p>
     71   </div>
     72  </body>
     73 </html>