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

Side by Side Diff: LayoutTests/fast/css/parse-color-int-or-percent-crash.html

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
1 <html> 1 <html>
2 <body> 2 <body>
3 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 6
7 var stopElement = document.createElementNS("http://www.w3.org/2000/s vg", "stop"); 7 var stopElement = document.createElementNS("http://www.w3.org/2000/s vg", "stop");
8 stopElement.style.stopColor = "blue"; 8 stopElement.style.stopColor = "blue";
9 9
10 var colorString = "rgb(00000000000000000000"; 10 var colorString = "rgb(00000000000000000000";
11 stopElement.style.setProperty("stop-color", colorString); 11 stopElement.style.setProperty("stop-color", colorString);
12 document.body.innerHTML = stopElement.style.stopColor == "#0000ff" ? "PASS" : "FAIL"; 12 document.body.innerHTML = stopElement.style.stopColor == "rgb(0, 0, 255)" ? "PASS" : "FAIL";
13 </script> 13 </script>
14 </body> 14 </body>
15 </html> 15 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698