2011-06-01 Nikolas Zimmermann <nzimmermann@rim.com>
Reviewed by Rob Buis.
SVGs with a viewbox specified do not seem to work as SVGImages
https://bugs.webkit.org/show_bug.cgi?id=16517
SVGs with a viewBox work as background image nowadays, add a testcase covering it, originally from Beth Dakin.
* platform/mac/svg/as-image/svg-as-background-with-viewBox-expected.png: Added.
* platform/mac/svg/as-image/svg-as-background-with-viewBox-expected.txt: Added.
* svg/as-image/resources/green-relative-size-rect-with-viewBox.svg: Added.
* svg/as-image/svg-as-background-with-viewBox.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87807 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/svg/as-image/svg-as-background-with-viewBox.html b/LayoutTests/svg/as-image/svg-as-background-with-viewBox.html
new file mode 100644
index 0000000..2cbdcff
--- /dev/null
+++ b/LayoutTests/svg/as-image/svg-as-background-with-viewBox.html
@@ -0,0 +1,17 @@
+<html>
+<head>
+<style>
+div {
+ background: red;
+ background-repeat: no-repeat;
+ background-image: url(resources/green-relative-size-rect-with-viewBox.svg);
+ height: 100px;
+ width: 100px;
+}
+</style>
+</head>
+<!-- There should be no red visible -->
+<body style='margin: 0px'>
+<div> </div>
+</body>
+</html>