Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-transforms/perspective-svg-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Perspective on SVG</title>
<link rel="match" href="perspective-svg-001-ref.html">
<div style="perspective: 1500px;">
<svg overflow="hidden"
width="100%"
height="100%"
viewBox="0 0 365760 205740"
style="
backface-visibility: hidden;
transform: translate3d(0px, 0px, 0px)
rotate3d(0, 0, 0, 0deg) translate3d(0px, 0px, 0px)
translate3d(0px, 0px, 0px);
">
<rect fill="green" width="100%" height="100%"></rect>
</svg>
</div>