Commit 0f7fcac9 authored by eric@webkit.org's avatar eric@webkit.org

Reviewed by Maciej Stachowiak.

        Add a testcase using SVG in HTML with CSS transforms
        https://bugs.webkit.org/show_bug.cgi?id=23112

        We currently fail the <text> section of this test but pass the path and image sections.

        * platform/mac/svg/transforms/animated-path-inside-transformed-html-expected.checksum: Added.
        * platform/mac/svg/transforms/animated-path-inside-transformed-html-expected.png: Added.
        * platform/mac/svg/transforms/animated-path-inside-transformed-html-expected.txt: Added.
        * svg/transforms/animated-path-inside-transformed-html.xhtml: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent dfaef8ed
2009-05-04 Eric Seidel <eric@webkit.org>
Reviewed by Maciej Stachowiak.
Add a testcase using SVG in HTML with CSS transforms
https://bugs.webkit.org/show_bug.cgi?id=23112
We currently fail the <text> section of this test but pass the path and image sections.
* platform/mac/svg/transforms/animated-path-inside-transformed-html-expected.checksum: Added.
* platform/mac/svg/transforms/animated-path-inside-transformed-html-expected.png: Added.
* platform/mac/svg/transforms/animated-path-inside-transformed-html-expected.txt: Added.
* svg/transforms/animated-path-inside-transformed-html.xhtml: Added.
2009-05-04 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Dave Hyatt.
......@@ -421,7 +435,7 @@
* accessibility/canvas-expected.txt: Added.
* accessibility/canvas.html: Added.
2009-05-04 Kai <set EMAIL_ADDRESS environment variable>
2009-05-04 Kai Brüning <kai@granus.net>
Reviewed by Eric Seidel.
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x536
RenderBlock {html} at (0,0) size 800x536
RenderBody {body} at (8,16) size 784x470 [bgcolor=#FFFFFF]
RenderBlock {p} at (0,0) size 784x18
RenderText {#text} at (0,0) size 573x18
text run at (0,0) width 573: "CSS Transformed HTML div with SVG inside it. Animated SVG should repaint correctly."
layer at (58,84) size 402x405
RenderBlock {div} at (50,68) size 402x402 [border: (1px solid #000000)]
RenderSVGRoot {svg} at (182.33,132.92) size 251.67x352.08
RenderPath {rect} at (306.92,132.92) size 87.50x87.50 [stroke={[type=SOLID] [color=#FFC0CB] [stroke width=5.00]}] [fill={[type=SOLID] [color=#0000FF]}] [data="M300.00,0.00 L400.00,0.00 L400.00,100.00 L300.00,100.00 Z"]
RenderSVGText {text} at (150,300) size 139x23 contains 1 chunk(s)
RenderSVGInlineText {#text} at (0,-18) size 139x23
chunk 1 text run 1 at (150.00,300.00) startOffset 0 endOffset 17 width 139.00: "This is some text"
RenderSVGImage {image} at (350.67,401.67) size 83.33x83.33
RenderText {#text} at (0,0) size 0x0
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SVG inside transformed div</title>
<style>
body {
background-color: white;
}
.box {
height: 400px;
width: 400px;
margin: 50px;
border: 1px solid black;
-webkit-transform: translate(30px, 30px) rotate(20deg);
}
</style>
</head>
<body>
<p>CSS Transformed HTML div with SVG inside it. Animated SVG should repaint correctly.</p>
<div class="box">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 480 360">
<rect id="rect" stroke-width="5" fill="blue" stroke="pink" width="100" height="100" />
<text id="text" x="150" stroke-width="2px" stroke="green" font-size="20px">This is some text</text>
<image id="image" y="150" width="100" height="100" xlink:href="foo.png" />
</svg>
</div>
</body>
<script>
function doTheMoves() {
document.getElementById("rect").setAttribute("x", "300");
document.getElementById("text").setAttribute("y", "300");
document.getElementById("image").setAttribute("x", "350");
document.getElementById("image").setAttribute("y", "320");
if (window.layoutTestController)
layoutTestController.notifyDone();
}
if (window.layoutTestController)
layoutTestController.waitUntilDone();
window.onload = function() {
// Delay until after the first paint
setTimeout(doTheMoves, 100);
}
</script>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment