<!DOCTYPE HTML><html><head><metahttp-equiv="Content-Security-Policy"content="img-src *; style-src 'unsafe-hashes' 'sha256-UI8QfroYhb0WX073XBuM+RTPntpjZfkyFLsMw5vQfd0=';"><!-- 'sha256-S0VSqEOmzmyOifPfat2sJ7ELOgkldAEbaXlvi5iMqjc=' ==> 'background: green' --><title>Event handlers should be allowed if a matching hash and 'unsafe-hashes' are present</title><scriptsrc='/resources/testharness.js'></script><scriptsrc='/resources/testharnessreport.js'></script></head><body><divid='log'></div><script>vart1=async_test("Test that the inline style attribute is blocked");window.addEventListener('securitypolicyviolation',t1.step_func_done(function(e){assert_equals(e.violatedDirective,'style-src-attr');assert_equals(e.blockedURI,'inline');}));</script><imgsrc='../support/pass.png'id='test'style='background: green'></body></html>