1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/image-rect/background-common-usage-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,52 @@ 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 +<html> 1.10 + <head> 1.11 + <title>Testcases: -moz-image-rect() [bug 113577]</title> 1.12 + <style> 1.13 + div.wrapper { 1.14 + width: 32px; 1.15 + height: 32px; 1.16 + margin: 10px; 1.17 + background-color: red; 1.18 + } 1.19 + div.wrapper div { 1.20 + background-repeat: no-repeat; 1.21 + } 1.22 + #test1 { 1.23 + width: 32px; 1.24 + height: 32px; 1.25 + background-position: 0px 0px; 1.26 + background-image: url('green-16x16-in-blue-32x32.png'); 1.27 + } 1.28 + #test2 { 1.29 + width: 32px; 1.30 + height: 16px; 1.31 + background-position: 0px 0px; 1.32 + background-image: url('transparent-16x16-in-blue-32x32.png'); 1.33 + } 1.34 + #test3 { 1.35 + width: 16px; 1.36 + height: 16px; 1.37 + background-position: 0px 0px; 1.38 + background-image: url('green-16x16-in-blue-32x32.png'); 1.39 + } 1.40 + #test4 { 1.41 + width: 32px; 1.42 + height: 32px; 1.43 + background-color: yellow; 1.44 + background-position: -16px -16px; 1.45 + background-image: url('transparent-16x16-in-blue-32x32.png'); 1.46 + } 1.47 + </style> 1.48 + </head> 1.49 + <body> 1.50 + <div class="wrapper"><div id="test1"></div></div> 1.51 + <div class="wrapper"><div id="test2"></div></div> 1.52 + <div class="wrapper"><div id="test3"></div></div> 1.53 + <div class="wrapper"><div id="test4"></div></div> 1.54 + </body> 1.55 +</html>