Update web-platform-tests to revision d5be80a86d4f938250c075ac12414ad47516969c

This commit is contained in:
WPT Sync Bot 2018-11-08 21:03:14 -05:00
parent bb2c5e387f
commit 463b6d3b60
32 changed files with 454 additions and 43 deletions

View file

@ -49,6 +49,8 @@
// Allow tree-abiding pseudo elements after ::slotted
test_valid_selector("::slotted(*)::before");
test_valid_selector("::slotted(*)::after");
test_valid_selector("::slotted(*)::placeholder");
test_valid_selector("::slotted(*)::marker");
// Other pseudo elements not valid after ::slotted
test_invalid_selector("::slotted(*)::first-line");

View file

@ -0,0 +1,6 @@
<!doctype html>
<style>
::placeholder { color: green }
</style>
<input placeholder="I should be green">
<textarea placeholder="I should be green"></textarea>

View file

@ -0,0 +1,19 @@
<!doctype html>
<meta charset="utf-8">
<title>CSS Scoping Test: ::slotted() allows ::placeholder</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="help" href="https://drafts.csswg.org/css-scoping/#slotted-pseudo">
<link rel="match" href="slotted-placeholder-ref.html">
<div id="host">
<input placeholder="I should be green">
<textarea placeholder="I should be green"></textarea>
</div>
<script>
host.attachShadow({ mode: "open" }).innerHTML = `
<style>
::slotted(*)::placeholder { color: green }
</style>
<slot></slot>
`;
</script>