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/filter-region-transformed-child-001.html - WPT Dashboard Interop Dashboard
<title>CSS Filter: Scale a transformed child element"></title>
<link rel="match" href="reference/filter-region-transformed-child-001-ref.html">
<meta name="assert" content="This test ensures that the feComponentTransfer filter scales a child with CSS scale transform.">
<defs>
<filter id="filter" x="25%" y="0%" width="50%" height="100%">
<feComponentTransfer>
<feFuncR type="linear" intercept="0" slope="1"/>
<feFuncG type="linear" intercept="0" slope="0"/>
<feFuncB type="linear" intercept="0" slope="0"/>
<feFuncA type="linear" intercept="0" slope="1"/>
</feComponentTransfer>
</filter>
</defs>
</svg>
<style>
#parent {
display: inline-block;
filter: url(#filter);
}
#child {
background-color: gray;
width: 50px;
height: 50px;
transform: translate(25px, 25px) scale(2);
}
</style>
<div id="parent"><div id="child"></div></div>