Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /content-security-policy/svg/svg-inline-without-scripting.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<title>SVG without scripting should load</title>
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; style-src 'unsafe-inline';">
<link rel="match" href="resources/svg-inline-without-scripting-without-csp.html">
</head>
<body>
<p>Tests that an SVG loaded without any scripting should load.</p>
<svg width="6cm" height="5cm" viewBox="0 0 600 500"
<circle cx="300" cy="225" r="100" fill="green"/>
<text x="300" y="250"
font-family="Verdana"
font-size="50"
text-anchor="middle">
PASS
</text>
</svg>
</body>
</html>