1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <svg xmlns=
"http://www.w3.org/2000/svg" onload=
"runTest()">
3 <script type=
"text/ecmascript"><![CDATA[
5 function expect(string, val) {
7 var message = (string +
"") +
" " + (b ?
"PASSED" :
"FAILED (actual: '" + string +
"' expected: '" + val +
"')");
8 var txt = document.createElementNS(
"http://www.w3.org/2000/svg",
"text");
9 var textNode = document.createTextNode(message);
10 txt.appendChild(textNode);
11 document.rootElement.appendChild(txt);
15 if (window.testRunner)
16 testRunner.dumpAsText();
18 var e = document.getElementById(
"rect");
19 expect(e.style.getPropertyValue(
"marker"),
"url(#test)");
22 <rect visibility=
"hidden" width=
"100" height=
"100" id=
"rect" style=
"marker: url(#test)"/>