Commit 03f8578c authored by Mario Sanchez Prada's avatar Mario Sanchez Prada Committed by Commit Bot

[css-filters] Migrate effect-reference-on-transparent-element.htm 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: Ic36568e1ad9bcbe98ac851ed4cc3a8d9d4c857e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2144033Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Commit-Queue: Mario Sanchez Prada <mario@igalia.com>
Cr-Commit-Position: refs/heads/master@{#757840}
parent 720b80b8
<style>
.box {
width: 100px;
height: 100px;
filter: url(#flood_green);
}
</style>
<div class="box"></div>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0" height="0">
<defs>
<filter id="flood_green" x="0%" y="0%" width="100%" height="100%" color-interpolation-filters="sRGB">
<feColorMatrix type="matrix" values="0 0 0 0 0
0 0 0 0 1
0 0 0 0 0
0 0 0 0 1"/>
</filter>
</defs>
</svg>
<!DOCTYPE html>
<html>
<title>CSS Filters: SVG filter on transparent element</title>
<link rel="author" title="Stephen White" href="mailto:senorblanco@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterProperty">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=510541">
<link rel="match" href="reference/effect-reference-on-transparent-element-ref.html">
<meta name="assert" content="Check that applying a SVG filter to a transparent element works as expected. You should see a green lime colored square."/>
<style>
.box {
width: 100px;
height: 100px;
filter: url(#flood_green);
}
</style>
<body>
<div class="box"></div>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0" height="0">
<defs>
<filter id="flood_green" x="0%" y="0%" width="100%" height="100%" color-interpolation-filters="sRGB">
<feColorMatrix type="matrix" values="0 0 0 0 0
0 0 0 0 1
0 0 0 0 0
0 0 0 0 1"/>
</filter>
</defs>
</svg>
</body>
</html>
<style> <style>
.box { .box {
width: 100px; width: 100px;
height: 100px; height: 100px;
background-color: rgb(0, 255, 0); background-color: rgb(0, 255, 0);
} }
</style> </style>
<div class="box"></div> <div class="box"></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