Title: [87807] trunk/LayoutTests
Revision
87807
Author
[email protected]
Date
2011-06-01 09:01:12 -0700 (Wed, 01 Jun 2011)

Log Message

2011-06-01  Nikolas Zimmermann  <[email protected]>

        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.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (87806 => 87807)


--- trunk/LayoutTests/ChangeLog	2011-06-01 15:28:13 UTC (rev 87806)
+++ trunk/LayoutTests/ChangeLog	2011-06-01 16:01:12 UTC (rev 87807)
@@ -1,3 +1,17 @@
+2011-06-01  Nikolas Zimmermann  <[email protected]>
+
+        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.
+
 2011-06-01  Shishir Agrawal  <[email protected]>
 
         Reviewed by Tony Gentilcore.

Added: trunk/LayoutTests/platform/mac/svg/as-image/svg-as-background-with-viewBox-expected.png


(Binary files differ)
Property changes on: trunk/LayoutTests/platform/mac/svg/as-image/svg-as-background-with-viewBox-expected.png ___________________________________________________________________

Added: svn:mime-type

Added: trunk/LayoutTests/platform/mac/svg/as-image/svg-as-background-with-viewBox-expected.txt (0 => 87807)


--- trunk/LayoutTests/platform/mac/svg/as-image/svg-as-background-with-viewBox-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/svg/as-image/svg-as-background-with-viewBox-expected.txt	2011-06-01 16:01:12 UTC (rev 87807)
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (0,0) size 800x600
+      RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
+        RenderText {#text} at (0,0) size 4x18
+          text run at (0,0) width 4: " "

Added: trunk/LayoutTests/svg/as-image/resources/green-relative-size-rect-with-viewBox.svg (0 => 87807)


--- trunk/LayoutTests/svg/as-image/resources/green-relative-size-rect-with-viewBox.svg	                        (rev 0)
+++ trunk/LayoutTests/svg/as-image/resources/green-relative-size-rect-with-viewBox.svg	2011-06-01 16:01:12 UTC (rev 87807)
@@ -0,0 +1,3 @@
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 200 200 200">
+<rect x="-200" y="0" width="600" height="600" fill="green"/>
+</svg>

Added: trunk/LayoutTests/svg/as-image/svg-as-background-with-viewBox.html (0 => 87807)


--- trunk/LayoutTests/svg/as-image/svg-as-background-with-viewBox.html	                        (rev 0)
+++ trunk/LayoutTests/svg/as-image/svg-as-background-with-viewBox.html	2011-06-01 16:01:12 UTC (rev 87807)
@@ -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>&nbsp;</div>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to