layout/reftests/backgrounds/attachment-local-clipping-image-4.html

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
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: border-box; image}; border-radius</title>
     3 <link rel="match" href="attachment-local-clipping-image-4-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 double;
    13   overflow: hidden;
    14   border-radius: 50%;
    15   background: url(aqua-yellow-32x32.png) local;
    16   background-clip: border-box;
    17   background-origin: padding-box;
    18 }
    19 #outer div {
    20   height: 500px;
    21 }
    22 p {
    23   margin-top: 20px;
    24 }
    25 </style>
    26 <div id=outer>
    27   <div>
    28     <p><img src=blue-32x32.png></p>
    29   </div>
    30 </div>
    31 <script>
    32 document.getElementById('outer').scrollTop = 15;
    33 </script>

mercurial