Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Side by Side Diff: LayoutTests/svg/custom/getPresentationAttribute.svg

Issue 196173020: Remove deprecated getPresentationAttribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698