Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/image-blocked-alt-content.html

Issue 481753002: Use Shadow DOM to display fallback content for images (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/security/contentSecurityPolicy/image-blocked-alt-content.html
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/image-blocked-alt-content.html b/LayoutTests/http/tests/security/contentSecurityPolicy/image-blocked-alt-content.html
new file mode 100644
index 0000000000000000000000000000000000000000..de590c10693976237561d79234732f3821212f24
--- /dev/null
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/image-blocked-alt-content.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta http-equiv="Content-Security-Policy" content="img-src 'self'; script-src 'unsafe-inline'">
+</head>
+<body>
+This test shows what alt content looks like when an image errors out on a page with a CSP that blocks data: URIs for images.
+<img src="../resources/ab.png" width="50px;" height="50px;" alt="alt text">
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698