layout/reftests/image-rect/background-zoom-3-ref.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

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 #test3 {
michael@0 29 background-image: -moz-image-rect(url(green-16x16-in-blue-32x32.png), 0, 16, 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="test3"></div></div>
michael@0 35 </body>
michael@0 36 </html>

mercurial