mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision d5be80a86d4f938250c075ac12414ad47516969c
This commit is contained in:
parent
bb2c5e387f
commit
463b6d3b60
32 changed files with 454 additions and 43 deletions
|
@ -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");
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
<!doctype html>
|
||||
<style>
|
||||
::placeholder { color: green }
|
||||
</style>
|
||||
<input placeholder="I should be green">
|
||||
<textarea placeholder="I should be green"></textarea>
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue