This text should be green.

Style that does not match a 'nonce-*' expression in 'style-src' should not be applied to the page.

Summary

Harness status: OK

Found 2 tests

Details

ResultTest NameMessage
PassShould fire securitypolicyviolation
Asserts run
Pass
assert_equals("style-src-elem", "style-src-elem")
    at Test.<anonymous> ( /content-security-policy/style-src/stylenonce-blocked.sub.html:16:13)
Failstylenonce-blockedassert_equals: expected "rgb(0, 128, 0)" but got "rgb(0, 0, 0)"
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/content-security-policy/style-src/stylenonce-blocked.sub.html:32:13)
    at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
    at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
    at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/content-security-policy/style-src/stylenonce-blocked.sub.html:31:9
Asserts run
Fail
assert_equals("rgb(0, 0, 0)", "rgb(0, 128, 0)")
    at Test.<anonymous> ( /content-security-policy/style-src/stylenonce-blocked.sub.html:32:13)