Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/rendering/replaced-elements/images/blocked-by-csp.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>Images behave the same when blocked by CSP as when failing to load/broken</title>
<link rel="match" href="blocked-by-csp-ref.html">
<meta http-equiv=content-security-policy content="img-src 'none'">
<style>img { border: solid; }</style>
It should say PASS below:<br>
<img src=image alt="PASS">