Rubberstamped by Mark.
authorzimmermann@webkit.org <zimmermann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Dec 2007 21:16:38 +0000 (21:16 +0000)
committerzimmermann@webkit.org <zimmermann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Dec 2007 21:16:38 +0000 (21:16 +0000)
Add missing tests - their results have already been checked in over a month ago - I forgot to commit the tests itself.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28629 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/svg/custom/alignment-baseline-modes.svg [new file with mode: 0644]
LayoutTests/svg/custom/dominant-baseline-hanging.svg [new file with mode: 0644]
LayoutTests/svg/custom/dominant-baseline-modes.svg [new file with mode: 0644]

index 4ace18fa3c9fd88caf5c902fee65c90e376c76ab..18410413834d4139a7ac1320fdb0a21a2a9a6aef 100644 (file)
@@ -1,3 +1,13 @@
+2007-12-11  Nikolas Zimmermann  <zimmermann@kde.org>
+
+        Rubberstamped by Mark.
+
+        Add missing tests - their results have already been checked in over a month ago - I forgot to commit the tests itself.
+
+        * svg/custom/alignment-baseline-modes.svg: Added.
+        * svg/custom/dominant-baseline-hanging.svg: Added.
+        * svg/custom/dominant-baseline-modes.svg: Added.
+
 2007-12-11  Nikolas Zimmermann  <zimmermann@kde.org>
 
         Rubberstamped by Mark.
diff --git a/LayoutTests/svg/custom/alignment-baseline-modes.svg b/LayoutTests/svg/custom/alignment-baseline-modes.svg
new file mode 100644 (file)
index 0000000..cd3e6c6
--- /dev/null
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400">
+<g>
+       <text x="10" y="15" font-size="20" dominant-baseline="auto">This <tspan alignment-baseline="alphabetic">is a</tspan> test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 30)">
+       <text x="10" y="15" font-size="20" dominant-baseline="use-script">This <tspan alignment-baseline="alphabetic">is a</tspan> test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 60)">
+       <text x="10" y="15" font-size="20" dominant-baseline="no-change">This <tspan alignment-baseline="alphabetic">is a</tspan> test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 90)">
+       <text x="10" y="15" font-size="20" dominant-baseline="reset-size">This <tspan alignment-baseline="alphabetic">is a</tspan> test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 120)">
+       <text x="10" y="15" font-size="20" dominant-baseline="ideographic">This <tspan alignment-baseline="alphabetic">is a</tspan> test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 150)">
+       <text x="10" y="15" font-size="20" dominant-baseline="alphabetic">This <tspan alignment-baseline="alphabetic">is a</tspan> test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 180)">
+       <text x="10" y="15" font-size="20" dominant-baseline="hanging">This <tspan alignment-baseline="alphabetic">is a</tspan> test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 210)">
+       <text x="10" y="15" font-size="20" dominant-baseline="mathematical">This <tspan alignment-baseline="alphabetic">is a</tspan> test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 240)">
+       <text x="10" y="15" font-size="20" dominant-baseline="central">This <tspan alignment-baseline="alphabetic">is a</tspan> test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 270)">
+       <text x="10" y="15" font-size="20" dominant-baseline="middle">This <tspan alignment-baseline="alphabetic">is a</tspan> test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 300)">
+       <text x="10" y="15" font-size="20" dominant-baseline="text-after-edge">This <tspan alignment-baseline="alphabetic">is a</tspan> test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 330)">
+       <text x="10" y="15" font-size="20" dominant-baseline="text-before-edge">This <tspan alignment-baseline="alphabetic">is a</tspan> test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+</svg>
diff --git a/LayoutTests/svg/custom/dominant-baseline-hanging.svg b/LayoutTests/svg/custom/dominant-baseline-hanging.svg
new file mode 100644 (file)
index 0000000..25fe1a6
--- /dev/null
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400">
+
+  <defs>
+    <linearGradient id="gradient" x1="0" y1="0" x2="0" y2="1">
+      <stop offset="0" stop-color="rgb(255, 114, 180)" stop-opacity="0.5" />
+      <stop offset="1" stop-color="rgb(255, 0, 123)" />
+    </linearGradient>
+    <linearGradient id="h_stroke_gradient">
+      <stop offset="0" stop-color="black" />
+      <stop offset="1" stop-color="black" stop-opacity="0" />
+    </linearGradient>
+    <linearGradient id="v_stroke_gradient" x1="0" y1="0" x2="0" y2="1">
+      <stop offset="0" stop-color="black" />
+      <stop offset="1" stop-color="black" stop-opacity="0" />
+    </linearGradient>
+  </defs>
+
+  <rect width="400" height="400" fill="url(#gradient)" />
+
+  <g transform="translate(10,10)">
+    <rect width="380" height="25" fill="white" opacity="0.5" />
+    <g stroke-width="1" transform="translate(-0.5, -0.5)">
+      <line x1="0" y1="0" x2="380" y2="0" stroke="url(#h_stroke_gradient)" />
+      <line x1="0" y1="-0.5" x2="0" y2="25" stroke="url(#v_stroke_gradient)" />
+    </g>
+    <text x="2" font-size="20" dominant-baseline="hanging">This is hanging from the top-left corner</text>
+  </g>
+
+  <foreignObject x="10" y="45" width="380">
+    <html xmlns="http://www.w3.org/1999/xhtml">
+      <body>
+        <p>
+          The piece of text above should be aligned with the top-left corner of the rectangle below it. Both the <code>&lt;text&gt;</code> and the <code>&lt;rect&gt;</code> are located at the same coordinates and the <code>&lt;text&gt;</code> element uses the <code>hanging</code> value for its <code>dominant-baseline</code> attribute. 
+        </p>
+        <p>
+          <a href="mailto:aq@fuchsia-design.com" style="color: maroon">Antoine Quint</a>, January 27th
+        </p>
+      </body>
+    </html>
+  </foreignObject>
+
+</svg>
\ No newline at end of file
diff --git a/LayoutTests/svg/custom/dominant-baseline-modes.svg b/LayoutTests/svg/custom/dominant-baseline-modes.svg
new file mode 100644 (file)
index 0000000..61d5f27
--- /dev/null
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400">
+<g>
+       <text x="10" y="15" font-size="20" dominant-baseline="auto">This is a test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 30)">
+       <text x="10" y="15" font-size="20" dominant-baseline="use-script">This is a test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 60)">
+       <text x="10" y="15" font-size="20" dominant-baseline="no-change">This is a test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 90)">
+       <text x="10" y="15" font-size="20" dominant-baseline="reset-size">This is a test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 120)">
+       <text x="10" y="15" font-size="20" dominant-baseline="ideographic">This is a test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 150)">
+       <text x="10" y="15" font-size="20" dominant-baseline="alphabetic">This is a test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 180)">
+       <text x="10" y="15" font-size="20" dominant-baseline="hanging">This is a test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 210)">
+       <text x="10" y="15" font-size="20" dominant-baseline="mathematical">This is a test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 240)">
+       <text x="10" y="15" font-size="20" dominant-baseline="central">This is a test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 270)">
+       <text x="10" y="15" font-size="20" dominant-baseline="middle">This is a test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 300)">
+       <text x="10" y="15" font-size="20" dominant-baseline="text-after-edge">This is a test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+
+<g transform="translate(0 330)">
+       <text x="10" y="15" font-size="20" dominant-baseline="text-before-edge">This is a test</text>
+       <line x1="10" x2="110" y1="15" y2="15" stroke="red"/>
+</g>
+</svg>