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