1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
3 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" id=
"svg-root" width=
"100%" height=
"100%" viewBox=
"0 0 480 360" onload=
"runRepaintAndPixelTest()">
4 <script xlink:
href=
"../../fast/repaint/resources/text-based-repaint.js"/>
6 <marker id=
"markerStart" viewBox=
"0 0 10 10" markerWidth=
"2" markerHeight=
"2" refX=
"5" refY=
"5" markerUnits=
"strokeWidth">
7 <rect width=
"10" height=
"10" fill=
"red" stroke=
"none"/>
9 <marker id=
"markerEnd" viewBox=
"0 0 10 10" markerWidth=
"2" markerHeight=
"2" refX=
"5" refY=
"5" markerUnits=
"strokeWidth">
10 <path d=
"M 5 0 L 10 10 L 0 10 Z" fill=
"blue" stroke=
"none"/>
15 <path fill=
"none" stroke=
"black" stroke-width=
"8" marker-start=
"url(#markerStart)" marker-mid=
"url(#markerMiddle)" marker-end=
"url(#markerEnd)" d=
"M 130 135 L 180 135 L 180 185"/>
18 window.testIsAsync = true;
19 var defs = document.getElementById(
"defs");
21 function repaintTest() {
22 setTimeout(createMarker,
0);
25 function createMarker()
27 var marker = document.createElementNS(
"http://www.w3.org/2000/svg",
"marker");
28 marker.setAttribute(
"id",
"markerMiddle");
29 marker.setAttribute(
"viewBox",
"0 0 10 10");
30 marker.setAttribute(
"markerWidth",
"2");
31 marker.setAttribute(
"markerHeight",
"2");
32 marker.setAttribute(
"refX",
"5");
33 marker.setAttribute(
"refY",
"5");
34 marker.setAttribute(
"markerUnits",
"strokeWidth");
36 var circle = document.createElementNS(
"http://www.w3.org/2000/svg",
"circle");
37 circle.setAttribute(
"cx",
"5");
38 circle.setAttribute(
"cy",
"5");
39 circle.setAttribute(
"r",
"5");
40 circle.setAttribute(
"fill",
"green");
41 circle.setAttribute(
"stroke",
"none");
43 marker.appendChild(circle);
44 defs.appendChild(marker);