Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>The outline of a transformed outermost svg element is not clipped by its viewport</title>
<link rel="author" title="Nikolas Zimmermann" href="mailto:nzimmermann@igalia.com">
<link rel="match" href="outer-svg-transform-outline-ref.html">
<meta name="assert" content="The viewport clip of an outermost svg element only clips its content, not its outline.">
<style>
body {
margin: 0;
}
svg {
display: block;
position: absolute;
left: 50px;
top: 50px;
width: 100px;
height: 100px;
overflow: hidden;
transform: translate(10px, 10px);
outline: 20px solid green;
}
</style>
<svg>
<rect width="100" height="100" fill="green"/>
</svg>