layout/reftests/image-rect/dom-api-ref.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 <!--
     3     Any copyright is dedicated to the Public Domain.
     4     http://creativecommons.org/licenses/publicdomain/
     5 -->
     6 <html>
     7   <head>
     8     <title>Testcases: -moz-image-rect() [bug 113577]</title>
     9     <style>
    10       div.wrapper {
    11         width: 32px;
    12         height: 32px;
    13         margin: 10px;
    14         background-color: red;
    15       }
    16       #test1 {
    17         width: 16px;
    18         height: 16px;
    19         background-image: url('green-16x16-in-blue-32x32.png');
    20       }
    21       #test2 {
    22         width: 16px;
    23         height: 16px;
    24         background-image: url('green-16x16-in-blue-32x32.png');
    25       }
    26       #test3 {
    27       }
    28       #test4 {
    29         width: 32px;
    30         height: 32px;
    31         background-image: url('green-16x16-in-blue-32x32.png');
    32       }
    33     </style>
    34   </head>
    35   <body>
    36     <div class="wrapper"><div id="test1"></div></div>
    37     SUCCESS
    38     <div class="wrapper"><div id="test2"></div></div>
    39     SUCCESS
    40     <div class="wrapper"><div id="test3"></div></div>
    41     SUCCESS
    42     <div class="wrapper"><div id="test4"></div></div>
    43     SUCCESS
    44   </body>
    45 </html>

mercurial