blob: 159338c6db0e1a29c2b9840f4765c774dce4f5f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!DOCTYPE html>
<html>
<head>
<title>stylehash allowed from default-src</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<p id="p">Test</p>
<style>p#p { color: green; }</style>
<script>
var color = window.getComputedStyle(document.querySelector('#p')).color;
assert_equals(color, "rgb(0, 128, 0)");
done();
</script>
<div id="log"></div>
<script async defer src="../support/checkReport.sub.js?reportExists=false"></script>
</body>
</html>
|