summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/import/painting-marker-properties-01-f-manual.svg
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/svg/import/painting-marker-properties-01-f-manual.svg')
-rw-r--r--testing/web-platform/tests/svg/import/painting-marker-properties-01-f-manual.svg95
1 files changed, 95 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/import/painting-marker-properties-01-f-manual.svg b/testing/web-platform/tests/svg/import/painting-marker-properties-01-f-manual.svg
new file mode 100644
index 000000000..cbac3a7db
--- /dev/null
+++ b/testing/web-platform/tests/svg/import/painting-marker-properties-01-f-manual.svg
@@ -0,0 +1,95 @@
+<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="[reviewer]" author="Microsoft" status="created" version="$Revision: 1.2 $" testname="$RCSfile: painting-marker-properties-01-f.svg,v $">
+ <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://dev.w3.org/SVG/profiles/1.1F2/publish/painting.html#MarkerProperties">
+ <p>
+ <!--[[
+ 'Marker-start', 'marker-mid', and 'marker-end' only render markers at the appropriate vertices when applied to 'line', 'path', 'polygon' and 'polyline' elements.
+ ]]-->
+ </p>
+ </d:testDescription>
+ <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
+ <p>
+ <!--[[
+ For each attribute ('marker-start', 'marker-mid', and 'marker-end'), create a top 'rect' and a bottom 'rect' that define where the marker
+ 'rect's should align. Create the 'line', 'path', 'polygon', and 'polyline' elements to render their markers between the top and bottom 'rect'
+ elements such that an unbreaking line is formed. The 'line' element does not create a mid marker, so the top marker for the 'mid' column is
+ larger than the rest.
+ ]]-->
+ </p>
+ </d:operatorScript>
+ <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
+ <p>
+ <!--[[
+ Test passes if there are three unbroken blue rectangles visible on the page.
+ ]]-->
+ </p>
+ </d:passCriteria>
+ </d:SVGTestCase>
+ <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">
+ <style type="text/css"><![CDATA[
+ .start
+ {
+ marker-start: url(#markerTest);
+ }
+ .end
+ {
+ marker-end: url(#markerTest);
+ }
+ .mid
+ {
+ marker-mid: url(#markerTest);
+ }]]>
+ </style>
+ <defs>
+ <marker id="markerTest" markerWidth="100" markerHeight="100" fill="blue">
+ <rect width="50" height="55" />
+ </marker>
+ </defs>
+ <rect width="50" height="55" fill="blue" />
+ <line class="start" y1="50" x2="100" y2="50" stroke="none" />
+ <path class="start" d="M 0 100 L 50 100 L 100 100" />
+ <polygon class="start" points="0,150 50,150 100,150" />
+ <polyline class="start" points="0,200 50,200 100,200" />
+ <rect y="250" width="50" height="50" fill="blue" />
+
+ <rect x="250" width="50" height="55" fill="blue" />
+ <line class="end" x1="150" y1="50" x2="250" y2="50" stroke="none" />
+ <path class="end" d="M 150 100 L 200 100 L 250 100" />
+ <polygon class="end" points="250,150 200,150" />
+ <polyline class="end" points="150,200 200,200 250,200" />
+ <rect x="250" y="250" width="50" height="50" fill="blue" />
+
+ <rect x="350" width="50" height="105" fill="blue" />
+ <path class="mid" d="M 300 100 L 350 100 L 400 100" />
+ <polygon class="mid" points="300,150 350,150" />
+ <polyline class="mid" points="300,200 350,200 400,200" />
+ <rect x="350" y="250" width="50" height="50" fill="blue" />
+ </g>
+ <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
+ <text id="revision" x="10" y="340" stroke="none"
+ fill="black">$Revision: 1.2 $</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>