Wed, 31 Dec 2014 06:09:35 +0100
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 | Tests if the CSS parser can detect wrong syntax of -moz-image-rect() and |
michael@0 | 7 | gracefully fail. |
michael@0 | 8 | --> |
michael@0 | 9 | <html> |
michael@0 | 10 | <head> |
michael@0 | 11 | <title>Testcases: -moz-image-rect() [bug 113577]</title> |
michael@0 | 12 | <style> |
michael@0 | 13 | div.wrapper { |
michael@0 | 14 | width: 32px; |
michael@0 | 15 | height: 32px; |
michael@0 | 16 | margin: 10px; |
michael@0 | 17 | background-color: red; |
michael@0 | 18 | } |
michael@0 | 19 | div.wrapper div { |
michael@0 | 20 | width: 32px; |
michael@0 | 21 | height: 32px; |
michael@0 | 22 | background: no-repeat; |
michael@0 | 23 | } |
michael@0 | 24 | #test1 { |
michael@0 | 25 | /* only non-negative values accepted */ |
michael@0 | 26 | background-image: -moz-image-rect(url(green-16x16-in-blue-32x32.png), -1, 16, 16, 0); |
michael@0 | 27 | } |
michael@0 | 28 | #test2 { |
michael@0 | 29 | /* only bare numbers and percent values accepted */ |
michael@0 | 30 | background-image: -moz-image-rect(url(green-16x16-in-blue-32x32.png), 0px, 16, 16, 0); |
michael@0 | 31 | } |
michael@0 | 32 | #test3 { |
michael@0 | 33 | /* must have a complete set of <top>, <right>, <bottom>, <left> */ |
michael@0 | 34 | background-image: -moz-image-rect(url(green-16x16-in-blue-32x32.png), 16, 16); |
michael@0 | 35 | } |
michael@0 | 36 | #test4 { |
michael@0 | 37 | /* must be comma separated */ |
michael@0 | 38 | background-image: -moz-image-rect(url(green-16x16-in-blue-32x32.png) 0, 16, 16, 0); |
michael@0 | 39 | } |
michael@0 | 40 | </style> |
michael@0 | 41 | </head> |
michael@0 | 42 | <body> |
michael@0 | 43 | <div class="wrapper"><div id="test1"></div></div> |
michael@0 | 44 | <div class="wrapper"><div id="test2"></div></div> |
michael@0 | 45 | <div class="wrapper"><div id="test3"></div></div> |
michael@0 | 46 | <div class="wrapper"><div id="test4"></div></div> |
michael@0 | 47 | </body> |
michael@0 | 48 | </html> |