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

Side by Side Diff: LayoutTests/svg/custom/fill-SVGPaint-interface.svg

Issue 114373004: Remove the SVGColor and SVGPaint DOM interfaces (were deprecated). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: text diff fix Created 7 years 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').toString() != "[object SVGPain t]") {
16 log("SVGPaint css property is not reported as of type SVGPaint");
17 return;
18 }
19 rect.setAttribute('fill', 'green');
20 }
21 ]]>
22 </script>
23 This test tests that the type of the fill css attribute is correctly reported as SVGPaint.
24 See <a href="http://bugs.webkit.org/show_bug.cgi?id=14064">Bug 14064</a>.
25 <foreignObject width="100%" height="100%">
26 <html xmlns="http://www.w3.org/1999/xhtml">
27 <div id="log">
28 This test tests that the type of the fill css attribute is correctly reported as SVGPaint.
29 See <a href="http://bugs.webkit.org/show_bug.cgi?id=14064">Bug 14064</a>.
30 </div>
31 </html>
32 </foreignObject>
33
34 <rect x="10" y="50" width="100" height="100" fill="red" style="color:yellow" border-top="10"/>
35 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698