Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / security / contentSecurityPolicy / 1.1 / cssom / csskeyframesrule-insertrule-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     <style>
7         @keyframes test {
8         }
9     </style>
10 </head>
11 <body>
12     <script>
13         var rule = document.styleSheets[1].cssRules[0];
14         description("CSSKeyframesRule::insertRule blocked if 'unsafe-eval' is not an allowed source of style.");
15         shouldThrow("rule.insertRule('0% { top: 0; left: 0; }', 0);");
16     </script>
17 </body>
18 </html>