Update web-platform-tests to revision 1e4fe87a7f01c0b5c614c8f601ffa68b4a00662a

This commit is contained in:
WPT Sync Bot 2018-02-13 20:15:58 -05:00
parent 4c3f1756da
commit 432648745e
164 changed files with 8354 additions and 595 deletions

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Scoping: ::slotted :link</title>
<link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-scoping/#slotted-pseudo">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="host"><a id="a" href="#notvisited">This link should be green.</a></div>
<script>
let root = host.attachShadow({mode:"open"});
root.innerHTML = `
<style>
::slotted(:link) { color:green }
::slotted(:visited) { color:red }
</style>
<slot></slot>`;
test(() => {
assert_equals(getComputedStyle(a).color, "rgb(0, 128, 0)", "Unvisited link should be green.");
}, "Check that we match :link and not :visited for slotted anchor.");
</script>