9.31content-security-policy/style-src/

89 / 93 WPT subtests passing

Failed
4
Timed out
0
Not run
0
Test files
45
Blocking files
0

Chrome 90 / 93 WPT subtests passing on the same files, none blocking

Tests

45 test files here

Each test file opens in place to its subtests, and each subtest that did not pass to its message.

Test fileSubtests passingChromeFailedStanding
import-style-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. import should be allowed
import-style-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. import-style-blocked
injected-inline-style-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["PASS: 2 stylesheets on the page."]
injected-inline-style-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["violated-directive=style-src-elem","violated-directive=style-src-elem","PASS"]
inline-style-allowed-while-cloning-objects.sub.html22 / 25 passingChrome 22 / 253 failedWith failures
Standing
With failures runner status OK
Chrome
With failures 22 / 25 WPT subtests passing runner status OK
  1. FAILinline-style-allowed-while-cloning-objects 19
    assert_equals: expected "rgb(238, 130, 238) none repeat scroll 0% 0% / auto padding-box border-box" but got "rgba(0, 0, 0, 0) none repeat scroll 0% 0% / auto padding-box border-box"
  2. FAILinline-style-allowed-while-cloning-objects 20
    assert_equals: expected "rgb(238, 130, 238) none repeat scroll 0% 0% / auto padding-box border-box" but got "rgba(0, 0, 0, 0) none repeat scroll 0% 0% / auto padding-box border-box"
  3. FAILnon-HTML namespace
    assert_equals: expected "" but got "background: rgb(238, 130, 238)"
22 passing subtests
  1. Test that violation report event was fired
  2. inline-style-allowed-while-cloning-objects
  3. inline-style-allowed-while-cloning-objects 1
  4. inline-style-allowed-while-cloning-objects 2
  5. inline-style-allowed-while-cloning-objects 3
  6. inline-style-allowed-while-cloning-objects 4
  7. inline-style-allowed-while-cloning-objects 5
  8. inline-style-allowed-while-cloning-objects 6
  9. inline-style-allowed-while-cloning-objects 7
  10. inline-style-allowed-while-cloning-objects 8
  11. inline-style-allowed-while-cloning-objects 9
  12. inline-style-allowed-while-cloning-objects 10
  13. inline-style-allowed-while-cloning-objects 11
  14. inline-style-allowed-while-cloning-objects 12
  15. inline-style-allowed-while-cloning-objects 13
  16. inline-style-allowed-while-cloning-objects 14
  17. inline-style-allowed-while-cloning-objects 15
  18. inline-style-allowed-while-cloning-objects 16
  19. inline-style-allowed-while-cloning-objects 17
  20. inline-style-allowed-while-cloning-objects 18
  21. inline-style-allowed-while-cloning-objects 21
  22. inline-style-allowed-while-cloning-objects 22
inline-style-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["PASS"]
inline-style-attribute-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["PASS"]
inline-style-attribute-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["violated-directive=style-src-attr","PASS"]
inline-style-attribute-on-html.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["PASS"]
inline-style-blocked.sub.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Triggers securitypolicyviolation.
  2. Inline style element is blocked by CSP.
style-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting logs: ["PASS"]
style-blocked.html1 / 2 passingChrome 2 / 21 failedWith failures
Standing
With failures runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
  1. FAILdocument.styleSheets should contain an item for the blocked CSS.
    assert_equals: expected 1 but got 0
1 passing subtest
  1. Violated directive is script-src-elem.
style-src-attr-blocked-createhtmldocument-adopt.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. A security policy violation is reported for the adopted style attribute
  2. The style attribute is not applied once the element is adopted into the document
style-src-attr-blocked-domparser-adopt.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. A security policy violation is reported for the adopted style attribute
  2. The style attribute is not applied once the element is adopted into the document
style-src-attr-blocked-template-move.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. A security policy violation is reported for the moved style attribute
  2. The style attribute is not applied once the element is moved out of the template
style-src-error-event-fires.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Test error event fires on stylesheet link
  2. Test error event fires on inline style
style-src-hash-allowed.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. All style elements should load because they have proper hashes
style-src-hash-blocked.html3 / 3 passingChrome 3 / 30 failedClean
Standing
Clean runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. Should load the style with a correct hash
  2. Should not load style that does not match hash
  3. Should fire a securitypolicyviolation event
style-src-hash-case-insensitive.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. All style elements should load because they have proper hashes
style-src-hash-default-src-allowed.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. All style elements should load because they have proper hashes
style-src-imported-style-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Imported style that violates policy should not load
style-src-imported-style-blocked.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. @import stylesheet should not load because it does not match style-src
  2. Should fire a securitypolicyviolation event
style-src-injected-inline-style-allowed-with-content-hash.html4 / 4 passingChrome 4 / 40 failedClean
Standing
Clean runner status OK
Chrome
Clean 4 / 4 WPT subtests passing runner status OK
4 passing subtests
  1. Inline injected style without text content should be allowed
  2. Inline style sheet should be created with null child node
  3. Inline style should be created with empty-string child node
  4. Inline style should be applied
style-src-injected-inline-style-allowed.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Injected inline style should load with 'unsafe-inline'
style-src-injected-inline-style-blocked.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Injected style attributes should not be applied
  2. Should fire a securitypolicyviolation event
style-src-injected-stylesheet-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Programatically injected stylesheet should load
style-src-injected-stylesheet-blocked.sub.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Programatically injected stylesheet should not load
  2. Should fire a securitypolicyviolation event
style-src-inline-style-allowed.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Inline style should apply with 'unsafe-inline'
style-src-inline-style-attribute-allowed.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Inline style attribute should apply with 'unsafe-inline'
style-src-inline-style-attribute-blocked.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Inline style attribute should not be applied without 'unsafe-inline'
  2. Should fire a securitypolicyviolation event
style-src-inline-style-blocked.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Inline style element should not load without 'unsafe-inline'
  2. Should fire a securitypolicyviolation event
style-src-inline-style-nonce-allowed.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Style with correct nonce should load
style-src-inline-style-nonce-blocked-error-event.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Should fire a securitypolicyviolation event
  2. Test that paragraph remains unmodified and error events received.
style-src-inline-style-nonce-blocked.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Should not load inline style element with invalid nonce
  2. Should fire a securitypolicyviolation event
style-src-inline-style-with-csstext.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Manipulating cssText should be allowed with 'self'
style-src-multiple-policies-multiple-hashing-algorithms.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Test that style loads if allowed by proper hash values
  2. Violation report status OK.
style-src-none-blocked.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Should not stylesheet when style-src is 'none'
  2. Should fire a securitypolicyviolation event
style-src-star-allowed.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. * should allow any style
style-src-stylesheet-nonce-allowed.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Stylesheet link should load with correct nonce
style-src-stylesheet-nonce-blocked.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Should not load stylesheet without correct nonce
  2. Should fire a securitypolicyviolation event
stylehash-allowed.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting alerts: ["PASS (1/4): The '#p1' element's text is green, which means the style was correctly applied.","PASS (2/4): The '#p2' element's text is green, which means the style was correctly applied.","PASS (3/4): The '#p3' element's text is green, which means the style was correctly applied.","PASS (4/4): The '#p4' element's text is green, which means the style was correctly applied."]
stylehash-basic-blocked.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. Expecting alerts: ["PASS: The 'p' element's text is green, which means the style was correctly applied.", "violated-directive=style-src-elem", "violated-directive=style-src-elem", "violated-directive=style-src-elem"]
stylehash-default-src.sub.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. stylehash allowed from default-src
stylenonce-allowed.sub.html3 / 3 passingChrome 3 / 30 failedClean
Standing
Clean runner status OK
Chrome
Clean 3 / 3 WPT subtests passing runner status OK
3 passing subtests
  1. Should fire securitypolicyviolation
  2. stylenonce-allowed
  3. stylenonce-allowed 1
stylenonce-blocked.sub.html2 / 2 passingChrome 2 / 20 failedClean
Standing
Clean runner status OK
Chrome
Clean 2 / 2 WPT subtests passing runner status OK
2 passing subtests
  1. Should fire securitypolicyviolation
  2. stylenonce-blocked

Written as HTML by tools/wpt_site/generate.zig from the runner’s journals and result streams; site.js adds the interactive chart, sorting, filtering and search. Faces: Source Serif 4, Public Sans and Source Code Pro, under the SIL Open Font License. Crane on GitHub.