Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / security / contentSecurityPolicy / 1.1 / cssom / cssstyledeclaration-csstext-blocked.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <script src="/js-test-resources/js-test.js"></script>
5     <meta http-equiv="Content-Security-Policy" content="style-src 'unsafe-inline' 'self'">
6 </head>
7 <body>
8     <script>
9         description("Setting CSSStyleDeclaration::cssText blocked if 'unsafe-eval' is not an allowed source of style.");
10         shouldThrow("document.head.style.cssText = 'display: none;';");
11     </script>
12 </body>
13 </html>