tor-browser

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

test-synthetic-italic-2-ref.html (1214B)


      1 <!DOCTYPE html>
      2 <html>
      3     <head>
      4        <title>CSS Reference file</title>
      5        <meta charset="utf-8" />
      6        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      7        <style type="text/css">
      8            div {
      9              /* use Ahem font which has no italic/oblique face, so that the oblique
     10                 will be synthesized with the given angle */
     11              font: 50px/1 Ahem;
     12              position: absolute;
     13            }
     14            /* test elements will use Ahem with various values of obliqueness */
     15            .test {
     16              writing-mode: vertical-rl;
     17              -webkit-text-orientation: upright;
     18              text-orientation: upright;
     19              color: green;
     20            }
     21            #test1 {
     22              font-style: oblique 14deg;
     23              top: 100px;
     24              left: 100px;
     25            }
     26            #test2 {
     27              font-style: oblique -45deg;
     28              top: 100px;
     29              left: 200px;
     30            }
     31        </style>
     32    </head>
     33    <body>
     34        <p>Test passes if no red shows, just two sheared green blocks:</p>
     35        <div id=test1 class=test>ABC</div>
     36        <div id=test2 class=test>ABC</div>
     37    </body>
     38 </html>