Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-ui/outline-svg-g-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface: outline on the SVG g element</title>
<link rel="match" href="outline-svg-container-001-ref.html">
<meta name="assert" content="outline applies to all elements, so an outline set on the SVG g element is painted around its content.">
<style>
.outline { outline: 4px solid green; }
</style>
<svg width="100" height="100">
<g class="outline"><rect x="20" y="20" width="60" height="60" fill="lightgreen"/></g>
</svg>