Commit c08b42a5 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

[css-masking] Migrate clip-path-reference-mutated.html to WPT

This CL migrates clip-path-reference-mutated.html
to  external/wpt/css/css-masking/, adding links to
the relevant specs and a test assertion describing
its purpose.

Note that the use run-after-layout-and-paint.js is replaced
by rendering-utils.js and reftest-wait.js.

BUG=1063749
R=fs@opera.com

Change-Id: I3cf19dee73ab4baf66b8a67449e1d2e302288c21
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2144712
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Reviewed-by: default avatarFredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#758813}
parent 2fe1a951
<!DOCTYPE html>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<html class="reftest-wait">
<title>CSS Masking: SVG clipPath dynamically updated.</title>
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">
<link rel="match" href="reference/reference-mutated-ref.html">
<meta name="assert" content="Test ensures that SVG clipPath updates properly when dynamically changed."/>
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
<style>
#target {
width: 100px;
......@@ -17,7 +25,8 @@
</defs>
</svg>
<script>
runAfterLayoutAndPaint(function() {
waitForAtLeastOneFrame().then(function() {
document.querySelector('circle').setAttribute('r', 1);
}, true);
takeScreenshot();
});
</script>
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