layout/reftests/backgrounds/attachment-local-clipping-color-3.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 <title>CSS Test: background-{attachment: local; clip: content-box; color}</title>
     3 <link rel="match" href="attachment-local-clipping-color-3-ref.html" />
     4 <meta name="flags" content="dom" />
     5 <link rel="author" title="Simon Sapin" href="http://exyr.org/about/" />
     6 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-attachment" />
     7 <style>
     8 #outer {
     9   width: 200px;
    10   height: 200px;
    11   padding: 40px;
    12   border: 10px dashed;
    13   overflow: hidden;
    14   background: green local content-box;
    15 }
    16 #outer div {
    17   height: 500px;
    18 }
    19 p {
    20   margin-top: 20px;
    21 }
    22 </style>
    23 <div id=outer>
    24   <div>
    25     <p><img src=blue-32x32.png></p>
    26   </div>
    27 </div>
    28 <script>
    29 document.getElementById('outer').scrollTop = 15;
    30 </script>

mercurial