Update web-platform-tests to revision fb15e14b52049f952612623ee0d7fb7a620a57c9

This commit is contained in:
WPT Sync Bot 2018-11-01 21:34:37 -04:00
parent 200cc8aa6b
commit 4a942c982f
141 changed files with 2563 additions and 1589 deletions

View file

@ -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>