1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/image-rect/background-zoom-4.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +<!DOCTYPE html> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/licenses/publicdomain/ 1.8 + 1.9 + Checks if the full zoom (x1.3) on -moz-image-rect() produces the same 1.10 + result as the same full zoom on the CSS sprites produced by hacking 1.11 + background-position. 1.12 + 1.13 + This file is identical to background-common-usage-pixel.html except the 1.14 + zoom factor. 1.15 +--> 1.16 +<html reftest-zoom="1.304348"> 1.17 + <head> 1.18 + <title>Testcases: -moz-image-rect() [bug 113577]</title> 1.19 + <style> 1.20 + div.wrapper { 1.21 + width: 32px; 1.22 + height: 32px; 1.23 + margin: 10px; 1.24 + background-color: red; 1.25 + } 1.26 + div.wrapper div { 1.27 + width: 32px; 1.28 + height: 32px; 1.29 + background: no-repeat; 1.30 + } 1.31 + #test4 { 1.32 + background-color: yellow; 1.33 + background-image: -moz-image-rect(url(transparent-16x16-in-blue-32x32.png), 16, 32, 32, 16); 1.34 + } 1.35 + </style> 1.36 + </head> 1.37 + <body> 1.38 + <div class="wrapper"><div id="test4"></div></div> 1.39 + </body> 1.40 +</html>