OLD | NEW |
| (Empty) |
1 <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> | |
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/R
EC-SVG-20010904/DTD/svg10.dtd"> | |
3 <svg xmlns="http://www.w3.org/2000/svg" onload="runTest()"> | |
4 | |
5 <script> | |
6 <![CDATA[ | |
7 function log(string) { | |
8 var newDiv = document.createElementNS("http://www.w3.org/1999/xhtml", "div
"); | |
9 newDiv.textContent = string; | |
10 document.getElementById('log').appendChild(newDiv); | |
11 } | |
12 function runTest() | |
13 { | |
14 var rect = document.rootElement.lastChild.previousSibling; | |
15 if (rect.getPresentationAttribute('fill') == null) { | |
16 log("Failed getting the fill PA"); | |
17 return; | |
18 } | |
19 if (rect.getPresentationAttribute('color') != null) { | |
20 log("There should be no color PA"); | |
21 return; | |
22 } | |
23 if (rect.getPresentationAttribute('border-top') != null) { | |
24 log("There should be no border-top PA"); | |
25 return; | |
26 } | |
27 rect.setAttribute("fill", "green"); | |
28 } | |
29 ]]> | |
30 </script> | |
31 This test tests that getPresentationAttribute succefully returns SVG presentatio
n attributes, but not ones that are defined in the inline style and not non SVG
css properties like border. | |
32 See <a href="http://bugs.webkit.org/show_bug.cgi?id=13976">Bug 13976</a>. | |
33 <foreignObject width="100%" height="100%"> | |
34 <html xmlns="http://www.w3.org/1999/xhtml"> | |
35 <div id="log"> | |
36 This test tests that getPresentationAttribute succesfully returns SVG presentati
on attributes, but not ones that are defined in the inline style and not non SVG
css properties like border. | |
37 See <a href="http://bugs.webkit.org/show_bug.cgi?id=13976">Bug 13976</a>. | |
38 </div> | |
39 </html> | |
40 </foreignObject> | |
41 | |
42 <rect x="10" y="50" width="100" height="100" fill="red" style="color:yellow"
border-top="10"/> | |
43 </svg> | |
OLD | NEW |