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-on-span.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<title>CSS Filters: filters on <span> elements</title>
<link rel="author" title="Stephen White" href="mailto:senorblanco@chromium.org">
<link rel="match" href="reference/effect-reference-on-span-ref.html">
<meta name="assert" content="Check that a CSS filter to a <span> element works as expected."/>
<body>
<defs>
<filter id="colormatrix" color-interpolation-filters="sRGB">
<feColorMatrix values="0 0 0 0 0, 0 0 0 0 0, 1 0 0 0 0, 0 0 0 1 0"/>
</filter>
</defs>
</svg><span style="background-color: red; filter: url(#colormatrix);">This text's background should be blue.</span>
</body>
</html>