Commit 932a0034 authored by Mario Sanchez Prada's avatar Mario Sanchez Prada Committed by Commit Bot

[css-filters] Migrate effect-reference-merge-no-inputs.html to WPT

Migrate this test out of third_party/blink/web_tests/css3/filters
and into the WPT-specific directory, adding links to the relevant
specs and a test assertion describing its purpose.

Bug: 1063749
Change-Id: I4dc500f5bfbfd81a9bf4dadd08ea5f20e2d4646d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2139706Reviewed-by: default avatarFredrik Söderquist <fs@opera.com>
Commit-Queue: Mario Sanchez Prada <mario@igalia.com>
Cr-Commit-Position: refs/heads/master@{#757380}
parent 95dfdabc
<!DOCTYPE html>
<div style="width: 100px; height: 100px; background-color: green"></div>
<!DOCTYPE html>
<style>
#target {
width: 100px;
height: 100px;
background-color: green;
filter: url(#emptyMerge);
}
</style>
<div id="target"></div>
<svg height="0">
<filter id="emptyMerge">
<feColorMatrix values="0 1 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 1 0" result="red"/>
<feMerge/>
<feComposite in2="SourceGraphic"/>
</filter>
</svg>
<!DOCTYPE html>
<title>CSS Filters: feMerge with no input feMergeNode</title>
<link rel="author" title="Fredrik Söderquist" href="mailto:fs@opera.com">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterProperty">
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#feMergeElement">
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#feCompositeElement">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=533457">
<link rel="match" href="reference/effect-reference-merge-no-inputs.tentative-ref.html">
<meta name="assert" content="Check that the result of an feMerge with no feMergeNode children is transparent black."/>
<style>
#target {
width: 100px;
height: 100px;
background-color: blue;
filter: url(#emptyMerge);
}
</style>
<div id="target"></div>
<svg height="0">
<filter id="emptyMerge">
<feColorMatrix values="0 0 0 0 0, 0 0 1 0 0, 0 0 0 0 0, 0 0 0 1 0" result="lime"/>
<feColorMatrix values="0 1 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 1 0" result="red"/>
<feMerge/>
<feComposite in2="lime"/>
</filter>
</svg>
<!DOCTYPE html>
<div style="width: 100px; height: 100px; background-color: lime"></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