blob: 129d35750d14eaf6fb4b9069d0bb64dbe69f03f8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
#test {
background-color: green;
height: 128px;
width: 128px;
}
</style>
<meta http-equiv="Content-Security-Policy" content="style-src *">
<link rel="stylesheet" href="data:text/css, #test { background-color: red !important; }">
</head>
<body>
<p>This tests that loading a stylesheet with a data URL is blocked when the page has Content Security Policy &quot;style-src *&quot;. This test PASSED if you see a green square below. Otherwise, it FAILED.</p>
<div id="test"></div>
</body>
</html>