layout/reftests/backgrounds/background-size-cover-each-box.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
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   <title>background-size: cover; background-break: each-box</title>
     5   <style type="text/css">
     6 @font-face
     7 {
     8   font-family: Ahem;
     9   src: url(../fonts/Ahem.ttf);
    10 }
    12 #outer
    13 {
    14   border: 1px solid black;
    15   width: 10em;
    16 }
    17 #ahem-lines
    18 {
    19   font-family: Ahem;
    20   font-size: 32px;
    21   white-space: pre;
    22   background-image: url(blue-8x20-green-8x20.png);
    23   background-repeat: no-repeat;
    24   background-size: cover;
    25   -moz-background-inline-policy: each-box;
    26 }
    27 </style>
    28 </head>
    29 <body>
    30 <div id="outer">
    31 <span id="ahem-lines">      <!-- EOL -->
    32         <!-- mix it up for each-box and bounding-box --><!-- EOL -->
    33       <!-- EOL -->
    34       <!-- EOL -->
    35       </span></div>
    36 </body>
    37 </html>

mercurial