blob: 847e05b6ac62cb8dfcb4adba072b314653058d79 [file] [log] [blame]
Andrew Top61a84952019-04-30 15:07:33 -07001<!DOCTYPE html>
2<html>
3
4<head>
5 <!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
6 <title>style-blocked</title>
7 <script src="/resources/testharness.js"></script>
8 <script src="/resources/testharnessreport.js"></script>
9 <script src='../support/logTest.sub.js?logs=["PASS"]'></script>
10 <script src="../support/alertAssert.sub.js?alerts=[]"></script>
11 <!-- enforcing policy:
12style-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-inline'; connect-src 'self';
13-->
14 <link rel="stylesheet" href="resources/blue.css">
15</head>
16
17<body>
18 <script>
19 log(document.styleSheets.length > 0 ? 'FAIL' : 'PASS');
20
21 </script>
22 <div id="log"></div>
23 <script async defer src="../support/checkReport.sub.js?reportExists=true&amp;reportField=violated-directive&amp;reportValue=style-src%20&apos;none&apos;"></script>
24</body>
25
26</html>