Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/render/reftests/blending-svg-will-change-opacity.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>'mix-blend-mode' inside an SVG element with 'will-change: opacity'</title>
<link rel="author" title="Nikolas Zimmermann" href="mailto:nzimmermann@igalia.com">
<link rel="match" href="blending-svg-root-ref.html">
<meta name="assert" content="'will-change: opacity' on an SVG element creates an isolated group, as 'opacity' would, so blending descendants do not blend with the content behind the 'svg' element.">
<div style="background: green">
<div>Expected: a black square on green background.</div>
<svg style="width: 200px; height: 200px">
<g style="will-change: opacity">
<rect width="200" height="200" fill="black" style="mix-blend-mode: difference"/>
</g>
</svg>
</div>