blob: 9289f619c8dbbd4649e959ac17a8d92400ea47b7 [file] [log] [blame]
<!DOCTYPE html>
<html style="background-color: blue;">
<head>
<meta http-equiv="X-WebKit-CSP" content="style-src 'none'; script-src 'unsafe-inline'">
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
</head>
<body>
<p>Even though this page has a CSP policy the blocks inline style, the style
attribute on the HTML element still takes effect because it preceeds the meta
element.</p>
<script>
document.write(document.documentElement.style.length > 0 ? 'PASS' : 'FAIL');
</script>
</body>
</html>