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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/inline-style-attribute-on-html.html

Issue 2784543003: Fixed wpt content-security-policy/style-src tests (Closed)
Patch Set: CR changes Created 3 years, 8 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html style="background-color: blue;">
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="style-src 'none'; script-src 'unsafe-inline'">
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
8 </script>
9 </head>
10 <body>
11 <p>Even though this page has a CSP policy the blocks inline style, the style
12 attribute on the HTML element still takes effect because it preceeds the meta
13 element.</p>
14 <script>
15 document.write(document.documentElement.style.length > 0 ? 'PASS' : 'FAIL');
16 </script>
17 </body>
18 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698