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-foreign-object.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>'mix-blend-mode' for <svg:foreignObject></title>
<link rel="match" href="blending-svg-foreign-object-ref.html">
<div style="background: green">
<div>Expected: a black square on green background.</div>
<svg style="width: 200px; height: 200px">
<foreignObject width="200" height="200" style="mix-blend-mode: multiply">
<div style="width: 200px; height: 200px; background: red"></div>
</foreignObject>
</svg>
</div>