mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision fb15e14b52049f952612623ee0d7fb7a620a57c9
This commit is contained in:
parent
200cc8aa6b
commit
4a942c982f
141 changed files with 2563 additions and 1589 deletions
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scoping/#slots-in-shadow-tree">
|
||||
<div id="host"><span id="slotted">This text should be green.</span></div>
|
||||
<script>
|
||||
const root = host.attachShadow({mode:"open"});
|
||||
root.innerHTML = '<slot name="nomatch" style="color:green"></slot><slot style="color:red"></slot>';
|
||||
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(slotted).color, "rgb(255, 0, 0)");
|
||||
}, "Initial computed color.");
|
||||
|
||||
test(() => {
|
||||
root.querySelector("slot").removeAttribute("name");
|
||||
assert_equals(getComputedStyle(slotted).color, "rgb(0, 128, 0)");
|
||||
|
||||
}, "Computed color after re-slotting.");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue