layout/reftests/image-element/element-paint-recursion.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 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/licenses/publicdomain/
     5      Test painting elements recursively using each other as background.
     6 -->
     7 <html>
     8 <body>
     9   <p id="d" style="width:100px; height:100px; border:10px solid black;
    10                    background:-moz-element(#d);"></p>
    11   <div id="e">
    12     <div style="width:100px; height:100px; border:10px solid blue;
    13                 background:-moz-element(#e);"></div>
    14   </div>
    15   <div id="f"></div>
    16   <!-- test zero-sized images -->
    17   <p style="width:100px; height:100px; border:10px solid green;
    18             background:-moz-element(#f) yellow;"></div>
    19   <div id="g">
    20     <div style="width:100px; height:100px; border:10px solid cyan;
    21                 background:-moz-element(#h);"></div>
    22   </div>
    23   <div id="h">
    24     <div style="width:100px; height:100px; border:10px solid magenta;
    25                 background:-moz-element(#g);"></div>
    26   </div>
    27 </body>
    28 </html>

mercurial