Commit 0555d4f2 authored by Gyuyoung Kim's avatar Gyuyoung Kim Committed by Commit Bot

[css-filters] Migrate filter-effect-removed.html to WPT

This CL migrates filter-effect-removed[-expected].html
tests from css3/filters to external/wpt/css/filter-effects
with WPT styles, adding links to the relevant specs, and
test description.

Additionally, this test is renamed to
filter-effect-remove-unattached[-ref].html to be align with
WPT naming style.

Bug: 1063749
Change-Id: I15ec6149c6c3bdc5ae271389f7559a2b502aa5ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2143018
Commit-Queue: Robert Ma <robertma@chromium.org>
Reviewed-by: default avatarRobert Ma <robertma@chromium.org>
Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758255}
parent c3f6e305
<!DOCTYPE html> <!DOCTYPE html>
<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1"> <html class="reftest-wait">
<title>CSS Filters: Remove a filter effect from an unattached element</title>
<link rel="author" title="Ali Juma" href="mailto:ajuma@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#FilterProperty">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#feGaussianBlurElement">
<link rel="issue" href="https://bugs.chromium.org/p/chromium/issues/detail?id=502026">
<link rel="match" href="reference/filter-effect-remove-unattached-ref.html">
<meta name="assert" content="This test ensures that we can remove a filter effect from an unattached element.">
<script src="/common/reftest-wait.js"></script>
<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1">
<defs id="svgDefs" style="display:none"> <defs id="svgDefs" style="display:none">
<filter id="blurY" color-interpolation-filters="sRGB"> <filter id="blurY" color-interpolation-filters="sRGB">
<feGaussianBlur id="blurEffect" stdDeviation="0 5"> <feGaussianBlur id="blurEffect" stdDeviation="0 5">
</feGaussianBlur> </feGaussianBlur>
</filter> </filter>
</defs> </defs>
</svg> </svg>
<script> <script>
onload = function() { onload = function() {
...@@ -19,18 +28,13 @@ ...@@ -19,18 +28,13 @@
// Ensure we draw a frame. // Ensure we draw a frame.
document.getElementById("other").style.backgroundColor = "blue"; document.getElementById("other").style.backgroundColor = "blue";
takeScreenshot();
if (window.testRunner)
testRunner.notifyDone();
}); });
}); });
} }
if (window.testRunner)
testRunner.waitUntilDone();
</script> </script>
<img src="resources/reference.png" style="filter: url(#blurY);"> <img src="resources/reference.png" style="filter: url(#blurY);">
<div id="other" style="width: 10px; height: 10px"></div> <div id="other" style="width: 10px; height: 10px"></div>
</html>
\ No newline at end of file
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
</defs> </defs>
</svg> </svg>
<img src="resources/reference.png" style="filter: url(#blurY);"> <img src="../resources/reference.png" style="filter: url(#blurY);">
<div id="other" style="width: 10px; height: 10px; background-color: blue;"></div> <div id="other" style="width: 10px; height: 10px; background-color: blue;"></div>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment