mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
Update web-platform-tests to revision 74bae78af4b95a2f0ca3a81df9c7fe3143f24bbc
This commit is contained in:
parent
fb95f9df9c
commit
02c1eed999
150 changed files with 2395 additions and 829 deletions
|
@ -501,15 +501,18 @@ test(() => {
|
|||
span.shadowRoot.adoptedStyleSheets = [sheet];
|
||||
assert_equals(getComputedStyle(shadowDiv).color, "rgb(255, 0, 0)");
|
||||
|
||||
document.adoptNode(span);
|
||||
assert_equals(span.shadowRoot.adoptedStyleSheets.length, 1);
|
||||
assert_equals(span.shadowRoot.adoptedStyleSheets[0], sheet);
|
||||
|
||||
const iframe = document.createElement("iframe");
|
||||
document.body.appendChild(iframe);
|
||||
iframe.contentDocument.adoptNode(span);
|
||||
iframe.contentDocument.body.appendChild(span);
|
||||
assert_not_equals(span.shadowRoot, null);
|
||||
assert_equals(span.shadowRoot.adoptedStyleSheets.length, 1);
|
||||
assert_equals(span.shadowRoot.adoptedStyleSheets[0], sheet);
|
||||
assert_equals(span.shadowRoot.adoptedStyleSheets.length, 0);
|
||||
assert_equals(getComputedStyle(shadowDiv).color, "rgb(0, 0, 0)");
|
||||
}, 'Adopting a shadow host will move adoptedStyleSheets but it is not applied');
|
||||
}, 'Adopting a shadow host will empty adoptedStyleSheets if adopting to a different document');
|
||||
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue