layout/reftests/text/kerning-01-notref.html

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <html>
     2 <head>
     3 <style type="text/css">
     4 @font-face {
     5   font-family: mplus;
     6   src: url(../fonts/mplus/mplus-1p-regular-no-OT.ttf);
     7   /* a copy of M+ with OpenType tables removed, so only legacy 'kern' is present */
     8 }
    10 body {
    11   text-rendering: optimizeLegibility;
    12   font-size: 40px;
    13   font-family: mplus;
    14 }
    15 span {
    16   font-family: serif;
    17 }
    18 </style>
    19 </head>
    20 <body>
    21 <!-- the ZWNJ characters with font change should prevent kerning at those positions;
    22      if the testcase looks the same, then kerning failed altogether -->
    23 AVA<span>&zwnj;</span>V<span>&zwnj;</span>A
    24 </body>
    25 </html>

mercurial