<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Security-Policy" content="style-src 'none'; script-src 'unsafe-inline'"> | |
<style> | |
.target { | |
background-color: blue; | |
} | |
</style> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
</script> | |
</head> | |
<body class="target"> | |
<script> | |
document.write(document.styleSheets.length > 0 ? 'FAIL' : 'PASS'); | |
</script> | |
</body> | |
</html> |