layout/reftests/font-face/local-styled-1-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 <!DOCTYPE html>
     2 <html>
     3 <head>
     4 <style type="text/css">
     5 @font-face {
     6   font-family: test;
     7   src: local(Nimbus Sans L), local(NimbusSansL-Regu),
     8        local(Helvetica), local(Bitstream Vera Sans),
     9        local(Arial), local(Liberation Sans), local(SwissA),
    10        local(Fira Sans OT), local(Fira Sans),
    11        local(Droid Sans), local(Roboto);
    12 }
    13 div {
    14   font-family: test, serif;
    15   margin: 10px;
    16 }
    17 </style>
    18 </head>
    19 <body>
    20 <div style="font-family:serif">
    21 This serif font should NOT be used below.
    22 </div>
    23 <hr>
    24 <div>
    25 These three lines should all use the same font face.
    26 </div>
    27 <div>
    28 This line should NOT be bold.
    29 </div>
    30 <div>
    31 This line should NOT be italic.
    32 </div>
    33 </body>
    34 </html>

mercurial