Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/layout/svg-use-symbol-opacity-print.html - WPT Dashboard Interop Dashboard
<!doctype html>
<link rel="match" href="svg-use-symbol-opacity-print-ref.html">
<html>
<head>
<style>
body { margin: 0 }
</style>
</head>
<body>
<!-- Should see a semi-transparent blue square inside the top left quarter of a purple square -->
<svg width=200 height=200 viewBox="0 0 200 200">
<defs>
<symbol id="r" viewBox="0 0 200 200">
<rect fill="blue" width=100 height=100>
<set attributeName="fill-opacity" to="0.5" fill="freeze"/>
</rect>
</symbol>
</defs>
<rect fill="purple" width=100 height=100 />
<use href="#r" width="100" height="100" />
</svg>
</body>
</html>