layout/reftests/backgrounds/background-size-body-percent-percent-overflow.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: 100% 100%; on body</title>
     5   <style type="text/css">
     6 body
     7 {
     8   background-image: url(green-8x20-blue-8x20-vertical.png);
     9   background-repeat: no-repeat;
    10   background-attachment: fixed;
    11   overflow: hidden;
    13   /*
    14    * This should not affect how the background paints, that is, how the
    15    * background image is sized:
    16    *
    17    *   If the ‘background-attachment’ value for this image is ‘fixed’ [...] the
    18    *   background positioning area is the initial containing block [CSS21].
    19    *
    20    * Thus '100% 100%' below is relative to the viewport size, so we expect to
    21    * see a background which, modulo aliasing, is half green and half blue.
    22    */
    23   height: 10000px;
    25   background-size: 100% 100%;
    26 }
    27   </style>
    28 </head>
    29 <body>
    30 </body>
    31 </html>

mercurial