layout/reftests/font-inflation/disable-fontinfl-on-mobile-ref.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 <!--
     2 Without the patch for bug 706198, this website should not show up as inflated. That means
     3 that with a 450px container, the minimum font size with 15em per line should be 30px.
     4 So, we map 0px-45px into 30px-45px, and thus 12px gets mapped to 34px.
     6 With the patch, the text should be uninflated, which means that 12px should still be
     7 12px.
     8 -->
     9 <!DOCTYPE html>
    10 <html>
    11   <head>
    12     <style>
    13       p { font-size: 12px; line-height: 1.0;}
    14     </style>
    15     <body>
    16       <p>Some uninflated text.</p>
    17     </body>
    18   </head>
    19 </html>

mercurial