mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 5084587f6b05bf99ad09e7844be66dcc61070cdf
This commit is contained in:
parent
6d42d2f1e8
commit
7d1071a6a4
408 changed files with 8968 additions and 2608 deletions
|
@ -16,6 +16,11 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
var host = document.querySelector("#host");
|
||||
var shadow = host.attachShadow({ mode: "open" });
|
||||
var tmpl = document.querySelector("template#shadow-dom");
|
||||
var clone = document.importNode(tmpl.content, true);
|
||||
shadow.appendChild(clone);
|
||||
|
||||
function testLinkRelModification(testDiv, testLink) {
|
||||
assert_equals(getComputedStyle(testDiv).color, "rgb(0, 128, 0)");
|
||||
|
@ -33,11 +38,6 @@ test (() => {
|
|||
}, "Removing stylesheet from link rel attribute should remove the stylesheet for light DOM");
|
||||
|
||||
test (() => {
|
||||
var host = document.querySelector("#host");
|
||||
var shadow = host.attachShadow({ mode: "open" });
|
||||
var tmpl = document.querySelector("template#shadow-dom");
|
||||
var clone = document.importNode(tmpl.content, true);
|
||||
shadow.appendChild(clone);
|
||||
testLinkRelModification(shadow.querySelector("#shadow-div"),
|
||||
shadow.querySelector("#shadow-link"));
|
||||
}, "Removing stylesheet from link rel attribute should remove the stylesheet for shadow DOM");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue