Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/filter-effects/effect-reference-source-alpha-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<title>CSS Filters: feColorMatrix with SourceAlpha</title>
<link rel="author" title="Stephen White" href="mailto:senorblanco@chromium.org">
<link rel="match" href="reference/effect-reference-source-alpha-002-ref.html">
<meta name="assert" content="Check that the result of an identity feColorMatrix with SourceAlpha from an element with will-change: transform as input is opaque black"/>
<style>
.rect {
position: absolute;
background-color: red;
width: 100px;
height: 100px;
filter: url(#alpha);
will-change: transform;
}
</style>
<div class="rect"></div>
<defs>
<filter id="alpha" color-interpolation-filters="sRGB">
<feColorMatrix in="SourceAlpha"/>
</filter>
</defs>
</svg>