CSSStyleSheet-constructable-replace-on-regular-sheet.html

FAILExpected0 of 3 subtests pass897 ms

Details

Test
/css/cssom/CSSStyleSheet-constructable-replace-on-regular-sheet.html
Harness
OK

Subtests

StatusSubtestMessage
FAILCSSStyleSheet.replaceSync throws NotAllowedError for non-constructed sheets
assert_throws_dom: replaceSync on non-constructed sheet should throw function "() => sheet.replaceSync(":root { background-color: red }")" did not throw
assert_throws_dom: replaceSync on non-constructed sheet should throw function "() => sheet.replaceSync(":root { background-color: red }")" did not throw
FAILCSSStyleSheet.replace returns a rejected promise for non-constructed sheets
assert_equals: precondition expected "rgb(0, 255, 0)" but got "rgb(255, 0, 0)"
assert_equals: precondition expected "rgb(0, 255, 0)" but got "rgb(255, 0, 0)"
FAILCSSStyleSheet.replace returns a rejected promise for non-constructed sheets that have no associated document
assert_equals: precondition expected "rgb(0, 255, 0)" but got "rgb(255, 0, 0)"
assert_equals: precondition expected "rgb(0, 255, 0)" but got "rgb(255, 0, 0)"