layout/reftests/image-rect/background-zoom-1-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.

michael@0 1 <!DOCTYPE html>
michael@0 2 <!--
michael@0 3 Any copyright is dedicated to the Public Domain.
michael@0 4 http://creativecommons.org/licenses/publicdomain/
michael@0 5
michael@0 6 Checks if the full zoom (x1.3) on -moz-image-rect() produces the same
michael@0 7 result as the same full zoom on the CSS sprites produced by hacking
michael@0 8 background-position.
michael@0 9
michael@0 10 This file is identical to background-common-usage-pixel.html except the
michael@0 11 zoom factor.
michael@0 12 -->
michael@0 13 <html reftest-zoom="1.304348">
michael@0 14 <head>
michael@0 15 <title>Testcases: -moz-image-rect() [bug 113577]</title>
michael@0 16 <style>
michael@0 17 div.wrapper {
michael@0 18 width: 32px;
michael@0 19 height: 32px;
michael@0 20 margin: 10px;
michael@0 21 background-color: red;
michael@0 22 }
michael@0 23 div.wrapper div {
michael@0 24 width: 32px;
michael@0 25 height: 32px;
michael@0 26 background: no-repeat;
michael@0 27 }
michael@0 28 #test1 {
michael@0 29 background-image: -moz-image-rect(url(green-16x16-in-blue-32x32.png), 0, 32, 32, 0);
michael@0 30 }
michael@0 31 </style>
michael@0 32 </head>
michael@0 33 <body>
michael@0 34 <div class="wrapper"><div id="test1"></div></div>
michael@0 35 </body>
michael@0 36 </html>

mercurial