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

Unified Diff: third_party/WebKit/LayoutTests/css3/filters/effect-reference-delete.html

Issue 2453403002: Rewrite css3/filters/effect-reference-delete.html (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/css3/filters/effect-reference-delete.html
diff --git a/third_party/WebKit/LayoutTests/css3/filters/effect-reference-delete.html b/third_party/WebKit/LayoutTests/css3/filters/effect-reference-delete.html
index 449bd682ed88b82fd33d5231cacfbda249497eb3..fa77ccf60e42a6f706ff6e304b9399c8d6f9544f 100644
--- a/third_party/WebKit/LayoutTests/css3/filters/effect-reference-delete.html
+++ b/third_party/WebKit/LayoutTests/css3/filters/effect-reference-delete.html
@@ -1,21 +1,15 @@
-<html>
- <head>
- <script type="application/x-javascript">
- function remove() {
- svg = document.getElementById("svg");
- svg.parentNode.removeChild(svg);
- }
- </script>
- </head>
- <body onload="remove();">
- <svg id="svg" xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1">
- <defs>
- <filter id="MyFilter">
- <feColorMatrix type="hueRotate" values="180"/>
- </filter>
- </defs>
- </svg>
- <img style="-webkit-filter: url(#MyFilter); filter: url(#MyFilter);" src="resources/reference.png">
- </body>
-</html>
-
+<!DOCTYPE html>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<svg width="0" height="0">
+ <defs>
+ <filter id="MyFilter">
+ <feColorMatrix type="hueRotate" values="180"/>
+ </filter>
+ </defs>
+</svg>
+<img style="filter: url(#MyFilter);" src="resources/reference.png">
+<script>
+runAfterLayoutAndPaint(function() {
+ document.querySelector('svg').remove();
+}, true);
+</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698