layout/reftests/text/fallback-01-ref.xhtml

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 <?xml version="1.0" encoding="utf-8" ?>
     2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     3           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
     4 	  [<!ENTITY first "!"><!ENTITY fallback "&#x00e6;">]>
     5 <html xmlns="http://www.w3.org/1999/xhtml">
     6 <!-- U+00E6 is expected to be found in Arial and DejaVu Sans, but not
     7      Devanagari MT, FrankRuehl, nor Standard Symbols L.
     8      "!" is chosen as it is expected to be found in the first font found.  -->
     9   <head>
    10     <style>
    11       p { font-size: 16.6px;
    12           font-family: Devanagari MT, FrankRuehl, Standard Symbols L, Arial, DejaVu Sans; serif }
    13       .fallback { font-family: Arial, DejaVu Sans, serif; }
    14     </style>
    15   </head>
    16   <body>
    17     <p><span class="fallback">&fallback;&fallback;</span>&first;<span class="fallback">&fallback;</span>&first;<span class="fallback">&fallback;</span>&first;<span class="fallback">&fallback;</span></p>
    18   </body>
    19 </html>

mercurial