This test ensures that styles can be set by object.cloneNode()

This is a div (nodes)
This is a div. (node 1 or 2)
This is a div. (node 1 or 2)
This is a div. (node 3 or 4)
Node #4
Yet another div.
Yet another div.

Summary

Harness status: OK

Found 24 tests

Details

ResultTest NameMessage
PassTest that violation report event was fired
Asserts run
Pass
assert_equals("style-src-attr", "style-src-attr")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:13:13)
Passinline-style-allowed-while-cloning-objects
Asserts run
Pass
assert_equals("yellow", "yellow")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:33:15)
Passinline-style-allowed-while-cloning-objects 1
Asserts run
Pass
assert_equals("yellow", "yellow")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:36:15)
Passinline-style-allowed-while-cloning-objects 2
Asserts run
Pass
assert_equals("blue", "blue")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:39:15)
Passinline-style-allowed-while-cloning-objects 3
Asserts run
Pass
assert_equals("blue", "blue")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:42:15)
Passinline-style-allowed-while-cloning-objects 4
Asserts run
Pass
assert_equals("red", "red")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:45:15)
Passinline-style-allowed-while-cloning-objects 5
Asserts run
Pass
assert_equals("red", "red")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:48:15)
Passinline-style-allowed-while-cloning-objects 6
Asserts run
Pass
assert_equals("green", "green")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:51:15)
Passinline-style-allowed-while-cloning-objects 7
Asserts run
Pass
assert_equals("green", "green")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:54:15)
Passinline-style-allowed-while-cloning-objects 8
Asserts run
Pass
assert_equals("rgb(255, 255, 0) none repeat scroll 0% 0% / auto padding-box border-box", "rgb(255, 255, 0) none repeat scroll 0% 0% / auto padding-box border-box")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:57:15)
Passinline-style-allowed-while-cloning-objects 9
Asserts run
Pass
assert_equals("rgb(0, 0, 255) none repeat scroll 0% 0% / auto padding-box border-box", "rgb(0, 0, 255) none repeat scroll 0% 0% / auto padding-box border-box")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:60:15)
Passinline-style-allowed-while-cloning-objects 10
Asserts run
Pass
assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:63:15)
Passinline-style-allowed-while-cloning-objects 11
Asserts run
Pass
assert_equals("rgb(0, 128, 0)", "rgb(0, 128, 0)")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:66:15)
Passinline-style-allowed-while-cloning-objects 12
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:75:15)
Passinline-style-allowed-while-cloning-objects 13
Asserts run
Pass
assert_equals("red", "red")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:78:15)
Passinline-style-allowed-while-cloning-objects 14
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:81:15)
Passinline-style-allowed-while-cloning-objects 15
Asserts run
Pass
assert_equals("rgb(238, 130, 238)", "rgb(238, 130, 238)")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:84:15)
Passinline-style-allowed-while-cloning-objects 16
Asserts run
Pass
assert_equals("rgba(0, 0, 0, 0) none repeat scroll 0% 0% / auto padding-box border-box", "rgba(0, 0, 0, 0) none repeat scroll 0% 0% / auto padding-box border-box")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:87:15)
Passinline-style-allowed-while-cloning-objects 17
Asserts run
Pass
assert_equals("rgb(255, 0, 0)", "rgb(255, 0, 0)")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:90:15)
Failinline-style-allowed-while-cloning-objects 18assert_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"
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:93:15)
    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 window.onload (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:92:11)
Asserts run
Fail
assert_equals("rgba(0, 0, 0, 0) none repeat scroll 0% 0% / auto padding-box border-box", "rgb(238, 130, 238) none repeat scroll 0% 0% / auto padding-box border-box")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:93:15)
Failinline-style-allowed-while-cloning-objects 19assert_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"
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:96:15)
    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 window.onload (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:95:11)
Asserts run
Fail
assert_equals("rgba(0, 0, 0, 0) none repeat scroll 0% 0% / auto padding-box border-box", "rgb(238, 130, 238) none repeat scroll 0% 0% / auto padding-box border-box")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:96:15)
Passinline-style-allowed-while-cloning-objects 20
Asserts run
Pass
assert_equals("ops", "ops")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:99:15)
Passinline-style-allowed-while-cloning-objects 21
Asserts run
Pass
assert_equals("ops", "ops")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:102:15)
Failnon-HTML namespaceassert_equals: expected "" but got "background: rgb(238, 130, 238)"
    at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:106:15)
    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 window.onload (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:104:11)
Asserts run
Fail
assert_equals("background: rgb(238, 130, 238)", "")
    at Test.<anonymous> ( /content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html:106:15)
Yet another div.