[librsvg: 15/25] Add painting-stroke-* tests from SVG1.1 test suite.



commit 5497bcd7275544eca3593d1093fb100559d4eda7
Author: Jordan Petridis <jordanpetridis protonmail com>
Date:   Tue Jan 30 16:20:06 2018 +0200

    Add painting-stroke-* tests from SVG1.1 test suite.

 .../reftests/svg1.1/painting-stroke-01-t-ref.png   | Bin 0 -> 23012 bytes
 .../reftests/svg1.1/painting-stroke-01-t.svg       |  68 ++++++++++++++++
 .../reftests/svg1.1/painting-stroke-02-t-ref.png   | Bin 0 -> 27918 bytes
 .../reftests/svg1.1/painting-stroke-02-t.svg       |  63 +++++++++++++++
 .../reftests/svg1.1/painting-stroke-03-t-ref.png   | Bin 0 -> 19469 bytes
 .../reftests/svg1.1/painting-stroke-03-t.svg       |  64 +++++++++++++++
 .../reftests/svg1.1/painting-stroke-04-t-ref.png   | Bin 0 -> 18056 bytes
 .../reftests/svg1.1/painting-stroke-04-t.svg       |  60 ++++++++++++++
 .../reftests/svg1.1/painting-stroke-05-t-ref.png   | Bin 0 -> 7464 bytes
 .../reftests/svg1.1/painting-stroke-05-t.svg       |  88 +++++++++++++++++++++
 .../reftests/svg1.1/painting-stroke-06-t-ref.png   | Bin 0 -> 5546 bytes
 .../reftests/svg1.1/painting-stroke-06-t.svg       |  74 +++++++++++++++++
 .../reftests/svg1.1/painting-stroke-07-t-ref.png   | Bin 0 -> 7975 bytes
 .../reftests/svg1.1/painting-stroke-07-t.svg       |  63 +++++++++++++++
 .../reftests/svg1.1/painting-stroke-08-t-ref.png   | Bin 0 -> 7629 bytes
 .../reftests/svg1.1/painting-stroke-08-t.svg       |  78 ++++++++++++++++++
 .../reftests/svg1.1/painting-stroke-09-t-ref.png   | Bin 0 -> 4590 bytes
 .../reftests/svg1.1/painting-stroke-09-t.svg       |  59 ++++++++++++++
 .../reftests/svg1.1/painting-stroke-10-t-ref.png   | Bin 0 -> 11044 bytes
 .../reftests/svg1.1/painting-stroke-10-t.svg       |  78 ++++++++++++++++++
 20 files changed, 695 insertions(+)
---
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-01-t-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-stroke-01-t-ref.png
new file mode 100644
index 0000000..a641d0e
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-stroke-01-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-01-t.svg 
b/tests/fixtures/reftests/svg1.1/painting-stroke-01-t.svg
new file mode 100644
index 0000000..837a64b
--- /dev/null
+++ b/tests/fixtures/reftests/svg1.1/painting-stroke-01-t.svg
@@ -0,0 +1,68 @@
+<svg version="1.1" baseProfile="tiny" id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";>
+  <!--======================================================================-->
+  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
+  <!--======================================================================-->
+  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
+  <!--=  Institute of Technology, European Research Consortium for         =-->
+  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
+  <!--=  All Rights Reserved.                                              =-->
+  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
+  <!--======================================================================-->
+  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/";
+    template-version="1.4" reviewer="SVGWG" author="Kevin McCluskey" status="accepted"
+    version="$Revision: 1.8 $" testname="$RCSfile: painting-stroke-01-t.svg,v $">
+    <d:testDescription xmlns="http://www.w3.org/1999/xhtml"; 
href="http://www.w3.org/TR/SVG11/painting.html#StrokeProperties";>
+      <p>
+        Verify the basic capability to handle the stroke properties ("stroke")
+        in combination with the "rect" element .
+        The pair should be rendered as two blue rectangles,
+        the upper one without a stroke and the lower with a green stroke.
+      </p>
+      <p>
+        The test uses the "rect" element, as well as basic "fill" (solid primary colors),
+        "stroke", stroke="green", "font-family" and "font-size" attributes.
+      </p>
+    </d:testDescription>
+    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        Run the test. No interaction required.
+      </p>
+    </d:operatorScript>
+    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        The rendered picture should match the reference image, except for possible
+        variations in the labeling text (per CSS2 rules).
+      </p>
+    </d:passCriteria>
+  </d:SVGTestCase>
+  <title id="test-title">$RCSfile: painting-stroke-01-t.svg,v $</title>
+  <defs>
+    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
+      <font-face-src>
+        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
+      </font-face-src>
+    </font-face>
+  </defs>
+  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
+    <!-- ============================================================================= -->
+    <!-- Draw two simple rectangles. One without stroke other with stroke:green          -->
+    <!-- ============================================================================= -->
+    <text font-size="36" x="10" y="40">Basic paint: stroke properties.</text>
+    <rect id="stroke-01" fill="blue" stroke="none" x="90" y="70" width="300" height="50"/>
+    <rect id="stroke-02" fill="blue" stroke-width="20" stroke="green" x="90" y="190" width="300" 
height="50"/>
+    <text font-size="30" x="140" y="150">stroke="none"</text>
+    <text font-size="30" x="148" y="280">stroke="green"</text>
+  </g>
+  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
+    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.8 $</text>
+  </g>
+  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
+  <!-- comment out this watermark once the test is approved -->
+  <!--<g id="draft-watermark">
+    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
+    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
+      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
+  </g>-->
+</svg>
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-02-t-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-stroke-02-t-ref.png
new file mode 100644
index 0000000..3586ab9
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-stroke-02-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-02-t.svg 
b/tests/fixtures/reftests/svg1.1/painting-stroke-02-t.svg
new file mode 100644
index 0000000..0bde5eb
--- /dev/null
+++ b/tests/fixtures/reftests/svg1.1/painting-stroke-02-t.svg
@@ -0,0 +1,63 @@
+<svg version="1.1" baseProfile="tiny" id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";>
+  <!--======================================================================-->
+  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
+  <!--======================================================================-->
+  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
+  <!--=  Institute of Technology, European Research Consortium for         =-->
+  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
+  <!--=  All Rights Reserved.                                              =-->
+  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
+  <!--======================================================================-->
+  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/";
+    template-version="1.4" reviewer="SVGWG" author="Kevin McCluskey" status="accepted"
+    version="$Revision: 1.7 $" testname="$RCSfile: painting-stroke-02-t.svg,v $">
+    <d:testDescription xmlns="http://www.w3.org/1999/xhtml"; 
href="http://www.w3.org/TR/SVG11/painting.html#StrokeProperties";>
+      <p>
+        Verify the basic capability to handle the stroke properties ("stroke", "stroke-width",
+        "stroke-linejoin") in combination with the "rect" element.
+      </p>
+    </d:testDescription>
+    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        Run the test. No interaction required.
+      </p>
+    </d:operatorScript>
+    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        The pair should be rendered as two blue rectangles without an interior fill.
+        The upper rectangle should have a thick stroke and sharp corners.
+        The lower rectangle should have a thick stroke and round corners.
+      </p>
+    </d:passCriteria>
+  </d:SVGTestCase>
+  <title id="test-title">$RCSfile: painting-stroke-02-t.svg,v $</title>
+  <defs>
+    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
+      <font-face-src>
+        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
+      </font-face-src>
+    </font-face>
+  </defs>
+  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
+    <!-- ====================================================================== -->
+    <!-- Set of rectangles with stroke-width:10 and stroke-linejoin:round-->
+    <!-- ====================================================================== -->
+    <text font-size="36" x="10" y="40">Basic paint: stroke properties.</text>
+    <rect id="stroke-01" fill="none" stroke="blue" stroke-width="20" x="90" y="70" width="300" height="50"/>
+    <rect id="stroke-02" fill="none" stroke="blue" stroke-width="20" stroke-linejoin="round" x="90" y="190" 
width="300" height="50"/>
+    <text font-size="40" x="120" y="160">stroke-width="20"</text>
+    <text font-size="40" x="58" y="290">stroke-linejoin="round"</text>
+  </g>
+  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
+    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
+  </g>
+  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
+  <!-- comment out this watermark once the test is approved -->
+  <!--<g id="draft-watermark">
+    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
+    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
+      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
+  </g>-->
+</svg>
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-03-t-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-stroke-03-t-ref.png
new file mode 100644
index 0000000..3f5f329
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-stroke-03-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-03-t.svg 
b/tests/fixtures/reftests/svg1.1/painting-stroke-03-t.svg
new file mode 100644
index 0000000..719a8b0
--- /dev/null
+++ b/tests/fixtures/reftests/svg1.1/painting-stroke-03-t.svg
@@ -0,0 +1,64 @@
+<svg version="1.1" baseProfile="tiny" id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";>
+  <!--======================================================================-->
+  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
+  <!--======================================================================-->
+  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
+  <!--=  Institute of Technology, European Research Consortium for         =-->
+  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
+  <!--=  All Rights Reserved.                                              =-->
+  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
+  <!--======================================================================-->
+  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/";
+    template-version="1.4" reviewer="SVGWG" author="Kevin McCluskey" status="accepted"
+    version="$Revision: 1.6 $" testname="$RCSfile: painting-stroke-03-t.svg,v $">
+    <d:testDescription xmlns="http://www.w3.org/1999/xhtml"; 
href="http://www.w3.org/TR/SVG11/painting.html#StrokeProperties";>
+      <p>
+        This test checks the basic capability of handling the stroke properties ("stroke", "stroke-width"
+        "stroke-linejoin", "stroke-linecap", "stroke-miterlimit")
+        with straight-line path commands.
+      </p>
+    </d:testDescription>
+    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        Run the test. No interaction required.
+      </p>
+    </d:operatorScript>
+    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        The two paths should be rendered as two blue line segments.
+        The upper segment should have round end caps. The lower segment
+        should be chopped off where the two line segments meet.
+      </p>
+    </d:passCriteria>
+  </d:SVGTestCase>
+  <title id="test-title">$RCSfile: painting-stroke-03-t.svg,v $</title>
+  <defs>
+    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
+      <font-face-src>
+        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
+      </font-face-src>
+    </font-face>
+  </defs>
+  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
+    <!-- ====================================================================== -->
+    <!-- Test stroke-linecap:round and stroke-miterlimit:1                -->
+    <!-- ====================================================================== -->
+    <text font-size="36" x="10" y="40">Basic paint: stroke properties.</text>
+    <path fill="none" stroke="blue" stroke-width="30" stroke-linecap="round" d="M 160 70 l 200 20 l -200 20 
"/>
+    <path fill="none" stroke="blue" stroke-width="30" stroke-linejoin="miter" stroke-miterlimit="1" d="M 160 
190 l 200 20 l -200 20"/>
+    <text font-size="40" x="60" y="160">stroke-linecap="round"</text>
+    <text font-size="40" x="130" y="280">stroke-miterlimit="1"</text>
+  </g>
+  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
+    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
+  </g>
+  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
+  <!-- comment out this watermark once the test is approved -->
+  <!--<g id="draft-watermark">
+    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
+    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
+      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
+  </g>-->
+</svg>
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-04-t-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-stroke-04-t-ref.png
new file mode 100644
index 0000000..566af91
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-stroke-04-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-04-t.svg 
b/tests/fixtures/reftests/svg1.1/painting-stroke-04-t.svg
new file mode 100644
index 0000000..5e23638
--- /dev/null
+++ b/tests/fixtures/reftests/svg1.1/painting-stroke-04-t.svg
@@ -0,0 +1,60 @@
+<svg version="1.1" baseProfile="tiny" id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";>
+  <!--======================================================================-->
+  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
+  <!--======================================================================-->
+  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
+  <!--=  Institute of Technology, European Research Consortium for         =-->
+  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
+  <!--=  All Rights Reserved.                                              =-->
+  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
+  <!--======================================================================-->
+  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/";
+    template-version="1.4" reviewer="SVGWG" author="Kevin McCluskey" status="accepted"
+    version="$Revision: 1.6 $" testname="$RCSfile: painting-stroke-04-t.svg,v $">
+    <d:testDescription xmlns="http://www.w3.org/1999/xhtml"; 
href="http://www.w3.org/TR/SVG11/painting.html#StrokeProperties";>
+        <p>
+          This test checks the "stroke-dasharray" and "stroke-dashoffset" properties. Two lines are drawn, 
one blue
+        and one black. Both have a "stroke-dasharray" of "10,10" giving a dashed appearance
+        where the size of the gaps and the size of the dash is equal.
+        </p>
+    </d:testDescription>
+    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml";>
+      Run the test. No interaction required.
+    </d:operatorScript>
+    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        The black line is lower than but parallel to the blue line. The "stroke-dashoffset" on each line 
should make the dashes of each line line up with the gaps in the other line.
+      </p>
+    </d:passCriteria>
+  </d:SVGTestCase>
+  <title id="test-title">$RCSfile: painting-stroke-04-t.svg,v $</title>
+  <defs>
+    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
+      <font-face-src>
+        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
+      </font-face-src>
+    </font-face>
+  </defs>
+  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
+    <!-- ====================================================================== -->
+    <!-- Test stroke-dasharray and stroke-dashoffset                            -->
+    <!-- ====================================================================== -->
+    <text font-size="36" x="10" y="60">Basic paint: stroke properties.</text>
+    <path id="stroke-7b" fill="none" stroke="blue" stroke-width="25" stroke-dashoffset="0" 
stroke-dasharray="10,10" d="M 50 120 L 430 120"/>
+    <path id="stroke-7c" fill="none" stroke="black" stroke-width="25" stroke-dashoffset="10" 
stroke-dasharray="10,10" d="M 50 140 L 430 140"/>
+    <text font-size="30" x="65" y="210">stroke-dasharray="10, 10"</text>
+    <text font-size="30" x="75" y="260">stroke-dashoffset="10"</text>
+  </g>
+  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
+    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
+  </g>
+  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
+  <!-- comment out this watermark once the test is approved -->
+  <!--<g id="draft-watermark">
+    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
+    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
+      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
+  </g>-->
+</svg>
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-05-t-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-stroke-05-t-ref.png
new file mode 100644
index 0000000..7e00674
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-stroke-05-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-05-t.svg 
b/tests/fixtures/reftests/svg1.1/painting-stroke-05-t.svg
new file mode 100644
index 0000000..f402701
--- /dev/null
+++ b/tests/fixtures/reftests/svg1.1/painting-stroke-05-t.svg
@@ -0,0 +1,88 @@
+<svg version="1.1" baseProfile="tiny" shape-rendering="geometricPrecision" id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";>
+  <!--======================================================================-->
+  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
+  <!--======================================================================-->
+  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
+  <!--=  Institute of Technology, European Research Consortium for         =-->
+  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
+  <!--=  All Rights Reserved.                                              =-->
+  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
+  <!--======================================================================-->
+  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/";
+    template-version="1.4" reviewer="CL" author="BB" status="accepted"
+    version="$Revision: 1.6 $" testname="$RCSfile: painting-stroke-05-t.svg,v $">
+    <d:testDescription xmlns="http://www.w3.org/1999/xhtml"; 
href="http://www.w3.org/TR/SVG11/painting.html#StrokeProperties";>
+      <p>
+        User agents may render graphical primitives with different levels of accuracy.
+        This test is aimed at determining how a UA renders thin strokes.
+      </p>
+      <p>
+        The test file contains a number of vertical and horizontal lines.
+        The stroke width of the vertical lines increase from left to right.
+        The stroke width of the horizontal lines increase from top to bottom.
+      </p>
+    </d:testDescription>
+    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml";>
+      Run the test. No interaction required.
+    </d:operatorScript>
+    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        The test is passed if user is able to see a smooth stroke width
+        increment for the vertical and horizontal lines. The top left hand
+        corner should contain strokes that are very thin in width and the bottom
+        right hand corner should contain thick strokes.
+      </p>
+    </d:passCriteria>
+  </d:SVGTestCase>
+  <title id="test-title">$RCSfile: painting-stroke-05-t.svg,v $</title>
+  <defs>
+    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
+      <font-face-src>
+        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
+      </font-face-src>
+    </font-face>
+  </defs>
+  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
+    <text font-size="20" x="240" y="30" text-anchor="middle">Rendering thin strokes</text>
+
+    <polyline points="030,50 030,300" stroke="black" stroke-width="0.001"/>
+    <polyline points="50,50 50,300" stroke="black" stroke-width="0.1"/>
+    <polyline points="70,50 70,300" stroke="black" stroke-width="0.2"/>
+    <polyline points="90,50 90,300" stroke="black" stroke-width="0.3"/>
+    <polyline points="110,50 110,300" stroke="black" stroke-width="0.4"/>
+    <polyline points="130,50 130,300" stroke="black" stroke-width="0.5"/>
+    <polyline points="150,50 150,300" stroke="black" stroke-width="0.6"/>
+    <polyline points="170,50 170,300" stroke="black" stroke-width="0.7"/>
+    <polyline points="190,50 190,300" stroke="black" stroke-width="0.8"/>
+    <polyline points="210,50 210,300" stroke="black" stroke-width="0.9"/>
+    <polyline points="230,50 230,300" stroke="black" stroke-width="1.0"/>
+    <polyline points="250,50 250,300" stroke="black" stroke-width="1.1"/>
+    <polyline points="270,50 270,300" stroke="black" stroke-width="1.2"/>
+    <polyline points="290,50 290,300" stroke="black" stroke-width="1.3"/>
+    <polyline points="310,50 310,300" stroke="black" stroke-width="1.4"/>
+    <polyline points="330,50 330,300" stroke="black" stroke-width="1.5"/>
+    <polyline points="350,50 350,300" stroke="black" stroke-width="1.6"/>
+    <polyline points="370,50 370,300" stroke="black" stroke-width="1.7"/>
+    <polyline points="390,50 390,300" stroke="black" stroke-width="1.8"/>
+    <polyline points="410,50 410,300" stroke="black" stroke-width="1.9"/>
+    <polyline points="430,50 430,300" stroke="black" stroke-width="2.0"/>
+    <polyline points="450,50 450,300" stroke="black" stroke-width="2.1"/>
+
+    <line x1="10" x2="470" y1="100" y2="100" stroke="darkblue" stroke-width="0.1"/>
+    <line x1="10" x2="470" y1="150" y2="150" stroke="darkblue" stroke-width="0.5"/>
+    <line x1="10" x2="470" y1="200" y2="200" stroke="darkblue" stroke-width="1"/>
+    <line x1="10" x2="470" y1="250" y2="250" stroke="darkblue" stroke-width="2"/>
+  </g>
+  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
+    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
+  </g>
+  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
+  <!-- comment out this watermark once the test is approved -->
+  <!--<g id="draft-watermark">
+    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
+    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
+      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
+  </g>-->
+</svg>
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-06-t-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-stroke-06-t-ref.png
new file mode 100644
index 0000000..1eeb627
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-stroke-06-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-06-t.svg 
b/tests/fixtures/reftests/svg1.1/painting-stroke-06-t.svg
new file mode 100644
index 0000000..829633f
--- /dev/null
+++ b/tests/fixtures/reftests/svg1.1/painting-stroke-06-t.svg
@@ -0,0 +1,74 @@
+<svg version="1.1" baseProfile="tiny" id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";>
+  <!--======================================================================-->
+  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
+  <!--======================================================================-->
+  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
+  <!--=  Institute of Technology, European Research Consortium for         =-->
+  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
+  <!--=  All Rights Reserved.                                              =-->
+  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
+  <!--======================================================================-->
+  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/";
+    template-version="1.4" reviewer="CL" author="CN" status="accepted"
+    version="$Revision: 1.7 $" testname="$RCSfile: painting-stroke-06-t.svg,v $">
+    <d:testDescription xmlns="http://www.w3.org/1999/xhtml"; 
href="http://www.w3.org/TR/SVG11/painting.html#StrokeProperties";>
+        <p>
+          Test default effects of stroke-dasharray.
+        </p>
+        <p>
+          This specifically tests the values of none and 0.
+          This also tests an odd number of values in a dash-array attribute
+          and in combination with an offset.
+        </p>
+    </d:testDescription>
+    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml";>
+      Run the test. No interaction required.
+    </d:operatorScript>
+    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        The top two lines must be solid black. The next line shows a thick
+        black line with a thinner blue line on top; both must have the same
+        dash pattern. The bottom two lines, one black and one blue, must render
+        so that the gaps of one correspond to the dashes of the other.
+      </p>
+    </d:passCriteria>
+  </d:SVGTestCase>
+  <title id="test-title">$RCSfile: painting-stroke-06-t.svg,v $</title>
+  <defs>
+    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
+      <font-face-src>
+        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
+      </font-face-src>
+    </font-face>
+  </defs>
+  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
+    <g transform="scale(1.8)">
+
+      <!-- No dasharray -->
+      <path stroke="black" stroke-width="10" fill="none" stroke-dasharray="none" d="   M  20 20   L  200 
20"/>
+
+      <path stroke="black" stroke-width="10" fill="none" stroke-dasharray="0" d="   M  20 40   L  200 40"/>
+
+      <!-- Odd number, should repeat to make an even number -->
+      <path stroke="black" stroke-width="20" fill="none" stroke-dasharray="5,2,5,5,2,5" d="   M  20 60   L  
200 60"/>
+      <path stroke="blue" stroke-width="10" fill="none" stroke-dasharray="5,2,5" d="   M  20 60   L  200 
60"/>
+
+      <!-- Odd number, with a dashoffset test -->
+      <path stroke="black" stroke-width="10" fill="none" stroke-dasharray="2" d="   M  20 80   L  200 80"/>
+
+      <path stroke="blue" stroke-width="10" fill="none" stroke-dasharray="2" stroke-dashoffset="2" d="       
  M  20 90   L  200 90"/>
+    </g>
+  </g>
+  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
+    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
+  </g>
+  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
+  <!-- comment out this watermark once the test is approved -->
+  <!--<g id="draft-watermark">
+    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
+    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
+      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
+  </g>-->
+</svg>
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-07-t-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-stroke-07-t-ref.png
new file mode 100644
index 0000000..4b9e210
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-stroke-07-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-07-t.svg 
b/tests/fixtures/reftests/svg1.1/painting-stroke-07-t.svg
new file mode 100644
index 0000000..853bda4
--- /dev/null
+++ b/tests/fixtures/reftests/svg1.1/painting-stroke-07-t.svg
@@ -0,0 +1,63 @@
+<svg version="1.1" baseProfile="tiny" id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";>
+  <!--======================================================================-->
+  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
+  <!--======================================================================-->
+  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
+  <!--=  Institute of Technology, European Research Consortium for         =-->
+  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
+  <!--=  All Rights Reserved.                                              =-->
+  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
+  <!--======================================================================-->
+  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/";
+    template-version="1.4" reviewer="CL" author="CN" status="accepted"
+    version="$Revision: 1.7 $" testname="$RCSfile: painting-stroke-07-t.svg,v $">
+    <d:testDescription xmlns="http://www.w3.org/1999/xhtml"; 
href="http://www.w3.org/TR/SVG11/painting.html#StrokeProperties";>
+        <p>
+          Test effect of different stroke-miterlimits. For this particular combination of
+          stroke width and angle, the cut off value of stroke-miterlimit is 18.028.
+        </p>
+    </d:testDescription>
+    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        Run the test. No interaction required.
+      </p>
+    </d:operatorScript>
+    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        The first and second subtests should not truncate the stroke, and all the rest must truncate it.
+      </p>
+    </d:passCriteria>
+  </d:SVGTestCase>
+  <title id="test-title">$RCSfile: painting-stroke-07-t.svg,v $</title>
+  <defs>
+    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
+      <font-face-src>
+        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
+      </font-face-src>
+    </font-face>
+  </defs>
+  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
+    <g transform="scale(1.2) translate(60, 30)">
+      <!-- test different miterlimits -->
+      <path stroke="black" stroke-width="10" stroke-linejoin="miter" stroke-miterlimit="20" fill="none" d="M 
 20 20   L  200 30  L  20 40"/>
+      <path stroke="black" stroke-width="10" stroke-linejoin="miter" stroke-miterlimit="18.1" fill="none" 
d="M  20 50   L  200 60  L  20 70"/>
+      <path stroke="black" stroke-width="10" stroke-linejoin="miter" stroke-miterlimit="17.9" fill="none" 
d="M  20 80   L  200 90  L  20 100"/>
+      <path stroke="black" stroke-width="10" stroke-linejoin="miter" stroke-miterlimit="17" fill="none" d="M 
 20 110   L  200 120  L  20 130"/>
+      <path stroke="black" stroke-width="10" stroke-linejoin="miter" stroke-miterlimit="4" fill="none" d="M  
20 140   L  200 150  L  20 160"/>
+      <path stroke="black" stroke-width="10" stroke-linejoin="miter" stroke-miterlimit="1" fill="none" d="M  
20 170   L  200 180  L  20 190"/>
+
+    </g>
+  </g>
+  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
+    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
+  </g>
+  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
+  <!-- comment out this watermark once the test is approved -->
+  <!--<g id="draft-watermark">
+    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
+    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
+      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
+  </g>-->
+</svg>
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-08-t-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-stroke-08-t-ref.png
new file mode 100644
index 0000000..dc194c5
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-stroke-08-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-08-t.svg 
b/tests/fixtures/reftests/svg1.1/painting-stroke-08-t.svg
new file mode 100644
index 0000000..a16b296
--- /dev/null
+++ b/tests/fixtures/reftests/svg1.1/painting-stroke-08-t.svg
@@ -0,0 +1,78 @@
+<svg version="1.1" baseProfile="tiny" id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";>
+  <!--======================================================================-->
+  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
+  <!--======================================================================-->
+  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
+  <!--=  Institute of Technology, European Research Consortium for         =-->
+  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
+  <!--=  All Rights Reserved.                                              =-->
+  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
+  <!--======================================================================-->
+  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/";
+    template-version="1.4" reviewer="CL" author="CN" status="accepted"
+    version="$Revision: 1.6 $" testname="$RCSfile: painting-stroke-08-t.svg,v $">
+    <d:testDescription xmlns="http://www.w3.org/1999/xhtml"; 
href="http://www.w3.org/TR/SVG11/painting.html#StrokeProperties";>
+        <p>
+          Test effects of stroke-opacity range. Values
+          outside the range 0-1.0 must be clamped.
+        </p>
+    </d:testDescription>
+    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml";>
+      Run the test. No interaction required.
+    </d:operatorScript>
+    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        There must be no blue bars visible beside the three pink dots.
+        Four semitransparent blue bars, increasingly more opaque,
+        must line up with the yellow dots. Three fully opaque
+        blue bars must line up with the green dots.
+      </p>
+    </d:passCriteria>
+  </d:SVGTestCase>
+  <title id="test-title">$RCSfile: painting-stroke-08-t.svg,v $</title>
+  <defs>
+    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
+      <font-face-src>
+        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
+      </font-face-src>
+    </font-face>
+  </defs>
+  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
+    <g transform="translate(50, 0) scale(1.7)">
+      <circle r="5" fill="#f66" cx="200" cy="20"/>
+      <circle r="5" fill="#f66" cx="200" cy="40"/>
+      <circle r="5" fill="#f66" cx="200" cy="60"/>
+      <circle r="5" fill="#f66" cx="200" cy="80"/>
+      <circle r="5" fill="#ff0" cx="200" cy="80"/>
+      <circle r="5" fill="#ff0" cx="200" cy="100"/>
+      <circle r="5" fill="#ff0" cx="200" cy="120"/>
+      <circle r="5" fill="#ff0" cx="200" cy="140"/>
+      <circle r="5" fill="#6f3" cx="200" cy="160"/>
+      <circle r="5" fill="#6f3" cx="200" cy="180"/>
+      <circle r="5" fill="#6f3" cx="200" cy="200"/>
+      <!-- Test range and values outside range (should be clamped to valid range) -->
+      <path stroke="blue" stroke-width="10" fill="none" stroke-opacity="-1.0" d="   M  20 20   L  200 20"/>
+      <path stroke="blue" stroke-width="10" fill="none" stroke-opacity="-0.1" d="   M  20 40   L  200 40"/>
+      <path stroke="blue" stroke-width="10" fill="none" stroke-opacity="0.0" d="   M  20 60   L  200 60"/>
+      <path stroke="blue" stroke-width="10" fill="none" stroke-opacity="0.2" d="   M  20 80   L  200 80"/>
+      <path stroke="blue" stroke-width="10" fill="none" stroke-opacity="0.4" d="   M  20 100   L  200 100"/>
+      <path stroke="blue" stroke-width="10" fill="none" stroke-opacity="0.6" d="   M  20 120   L  200 120"/>
+      <path stroke="blue" stroke-width="10" fill="none" stroke-opacity="0.8" d="   M  20 140   L  200 140"/>
+      <path stroke="blue" stroke-width="10" fill="none" stroke-opacity="1.0" d="   M  20 160   L  200 160"/>
+      <path stroke="blue" stroke-width="10" fill="none" stroke-opacity="1.1" d="   M  20 180   L  200 180"/>
+      <path stroke="blue" stroke-width="10" fill="none" stroke-opacity="2.0" d="   M  20 200  L  200 200"/>
+    </g>
+  </g>
+  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
+    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
+  </g>
+  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
+  <!-- comment out this watermark once the test is approved 
+  <g id="draft-watermark">
+    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
+    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
+      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
+  </g>-->
+</svg>
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-09-t-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-stroke-09-t-ref.png
new file mode 100644
index 0000000..c61e17e
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-stroke-09-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-09-t.svg 
b/tests/fixtures/reftests/svg1.1/painting-stroke-09-t.svg
new file mode 100644
index 0000000..850962c
--- /dev/null
+++ b/tests/fixtures/reftests/svg1.1/painting-stroke-09-t.svg
@@ -0,0 +1,59 @@
+<svg version="1.1" baseProfile="tiny" id="svg-root"
+  width="100%" height="100%" viewBox="0 0 480 360"
+  xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";>
+  <!--======================================================================-->
+  <!--=  SVG 1.1 2nd Edition Test Case                                     =-->
+  <!--======================================================================-->
+  <!--=  Copyright 2009 World Wide Web Consortium, (Massachusetts          =-->
+  <!--=  Institute of Technology, European Research Consortium for         =-->
+  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
+  <!--=  All Rights Reserved.                                              =-->
+  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
+  <!--======================================================================-->
+  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/";
+    template-version="1.3" reviewer="CL" author="CM" status="accepted"
+    version="$Revision: 1.7 $" testname="$RCSfile: painting-stroke-09-t.svg,v $">
+    <d:testDescription xmlns="http://www.w3.org/1999/xhtml"; 
href="http://www.w3.org/TR/SVG11/painting.html#StrokeDasharrayProperty";>
+      <p>
+        This tests that the "stroke-dasharray" property accepts values
+        that are separated by white space.
+      </p>
+    </d:testDescription>
+    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        Run the test. No interaction required.
+      </p>
+    </d:operatorScript>
+    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        The test is passed if it matches the reference rendering
+        by showing a thick stroke with alternating long and short
+        stroke dashes.
+      </p>
+    </d:passCriteria>
+  </d:SVGTestCase>
+  <title id="test-title">$RCSfile: painting-stroke-09-t.svg,v $</title>
+  <defs>
+    <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
+      <font-face-src>
+        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
+      </font-face-src>
+    </font-face>
+  </defs>
+  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
+    <!-- ====================================================================== -->
+    <!-- Test stroke-dasharray and stroke-dashoffset                            -->
+    <!-- ====================================================================== -->
+    <path fill="none" stroke="black" stroke-width="25" stroke-dasharray="25  5 , 5 5" d="M50,120 h385"/>
+  </g>
+  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
+    <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
+  </g>
+  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
+  <!-- comment out this watermark once the test is approved --><!--
+  <g id="draft-watermark">
+    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
+    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
+      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
+  </g>-->
+</svg>
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-10-t-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-stroke-10-t-ref.png
new file mode 100644
index 0000000..68122cd
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-stroke-10-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-stroke-10-t.svg 
b/tests/fixtures/reftests/svg1.1/painting-stroke-10-t.svg
new file mode 100644
index 0000000..1bad081
--- /dev/null
+++ b/tests/fixtures/reftests/svg1.1/painting-stroke-10-t.svg
@@ -0,0 +1,78 @@
+<svg id="svg-root" width="100%" height="100%"
+  viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg";
+  xmlns:xlink="http://www.w3.org/1999/xlink";>
+  <!--======================================================================-->
+  <!--=  Copyright 2008 World Wide Web Consortium, (Massachusetts          =-->
+  <!--=  Institute of Technology, European Research Consortium for         =-->
+  <!--=  Informatics and Mathematics (ERCIM), Keio University).            =-->
+  <!--=  All Rights Reserved.                                              =-->
+  <!--=  See http://www.w3.org/Consortium/Legal/.                          =-->
+  <!--======================================================================-->
+  <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/";
+    template-version="1.4" reviewer="CL" author="CM" status="accepted"
+    version="$Revision: 1.5 $" testname="$RCSfile: painting-stroke-10-t.svg,v $">
+    <d:testDescription xmlns="http://www.w3.org/1999/xhtml"; 
href="http://www.w3.org/TR/SVG11/painting.html#StrokeProperties";>
+      <p>
+        This tests that stroking of zero length subpaths will result in
+        some rendering if the 'stroke-linecap' property is set to
+        'square' or 'round', but not if it is set to 'butt'.
+      </p>
+      <p>
+        Simply load the test.  Two rows of shapes should be presented,
+        with a text label describing the row.
+      </p>
+    </d:testDescription>
+    <d:operatorScript xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        Run the test. No interaction required.
+      </p>
+    </d:operatorScript>
+    <d:passCriteria xmlns="http://www.w3.org/1999/xhtml";>
+      <p>
+        Simply load the test.  Two rows of shapes should be presented,
+        with a text label describing the row.
+      </p>
+    </d:passCriteria>
+  </d:SVGTestCase>
+  <title id="test-title">$RCSfile: painting-stroke-10-t.svg,v $</title>
+  <defs>
+    <font-face
+      font-family="SVGFreeSansASCII"
+      unicode-range="U+0-7F">
+      <font-face-src>
+        <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
+      </font-face-src>
+    </font-face>
+  </defs>
+  <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
+
+    <text x='10' y='40'>Test stroking of zero length subpaths</text>
+
+    <g stroke-width='50' stroke='blue' fill='none'>
+      <path d='M190,170 L190,170' stroke-linecap='round'/>
+      <path d='M290,170 L290,170' stroke-linecap='square'/>
+      <path d='M390,170 L390,170' stroke-linecap='butt' stroke='red'/>
+
+      <path d='M190,240 c0,0 0,0 0,0' stroke-linecap='round'/>
+      <path d='M290,240 c0,0 0,0 0,0' stroke-linecap='square'/>
+      <path d='M390,240 c0,0 0,0 0,0' stroke-linecap='butt' stroke='red'/>
+    </g>
+
+    <g font-size='12'>
+      <text x='10' y='175'>Using an 'L' command:</text>
+      <text x='10' y='245'>Using a 'c' command:</text>
+    </g>
+  </g>
+  <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
+    <text id="revision" x="10" y="340" stroke="none"
+      fill="black">$Revision: 1.5 $</text>
+  </g>
+  <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
+  <!-- comment out this watermark once the test is approved -->
+  <!--
+<g id="draft-watermark">
+    <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
+    <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
+      text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
+  </g>-->
+</svg>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]