layout/reftests/image-rect/background-zoom-2.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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 #test2 {
michael@0 29 background-image: -moz-image-rect(url(transparent-16x16-in-blue-32x32.png), 0, 32, 16, 0);
michael@0 30 }
michael@0 31 </style>
michael@0 32 </head>
michael@0 33 <body>
michael@0 34 <div class="wrapper"><div id="test2"></div></div>
michael@0 35 </body>
michael@0 36 </html>

mercurial