Fail | Constructing sheet with custom base URL ueses that URL for CSS rules | assert_equals: expected "url(\"https://www1.wpt.live/custom/path/example.png\")" but got "url(\"https://www1.wpt.live/css/cssom/example.png\")" at Test.<anonymous> (https://www1.wpt.live/css/cssom/CSSStyleSheet-constructable-baseURL.html:36:3)
at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
at test (https://www1.wpt.live/resources/testharness.js:633:30)
at https://www1.wpt.live/css/cssom/CSSStyleSheet-constructable-baseURL.html:16:1 Asserts runFail | assert_equals("url(\"https://www1.wpt.live/css/cssom/example.png\")", "url(\"https://www1.wpt.live/custom/path/example.png\")")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable-baseURL.html:36:3) |
|
Fail | Constructing sheet with relative URL adds to the constructor document's base URL | assert_equals: expected "url(\"https://www1.wpt.live/css/cssom/custom/path/example.png\")" but got "url(\"https://www1.wpt.live/css/cssom/example.png\")" at Test.<anonymous> (https://www1.wpt.live/css/cssom/CSSStyleSheet-constructable-baseURL.html:59:3)
at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
at test (https://www1.wpt.live/resources/testharness.js:633:30)
at https://www1.wpt.live/css/cssom/CSSStyleSheet-constructable-baseURL.html:39:1 Asserts runFail | assert_equals("url(\"https://www1.wpt.live/css/cssom/example.png\")", "url(\"https://www1.wpt.live/css/cssom/custom/path/example.png\")")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable-baseURL.html:59:3) |
|
Fail | Constructing sheet with invalid base URL throws a NotAllowedError | assert_throws_dom: function "() => { new CSSStyleSheet({ baseURL: "https://test:test/"}) }" did not throw at Test.<anonymous> (https://www1.wpt.live/css/cssom/CSSStyleSheet-constructable-baseURL.html:63:3)
at Test.step (https://www1.wpt.live/resources/testharness.js:2642:25)
at test (https://www1.wpt.live/resources/testharness.js:633:30)
at https://www1.wpt.live/css/cssom/CSSStyleSheet-constructable-baseURL.html:62:1 Asserts runFail | assert_throws_dom("NotAllowedError", function "() => { new CSSStyleSheet({ baseURL: "https://test:test/"}) }")
at Test.<anonymous> ( /css/cssom/CSSStyleSheet-constructable-baseURL.html:63:3) |
|