mirror of
https://github.com/servo/servo.git
synced 2025-08-26 23:58:20 +01:00
Update web-platform-tests to revision 386d27678c48bf468b8d374e2ba718e32185a5b7
This commit is contained in:
parent
c24420ddbe
commit
dd79cdc697
32 changed files with 336 additions and 167 deletions
|
@ -0,0 +1,3 @@
|
|||
<!doctype html>
|
||||
<title>CSS Test: Reference</title>
|
||||
<p style="color:green">This text should be green.</p>
|
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<html class="reftest-wait">
|
||||
<title>CSS Test: Re-slotted text node inheritance</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-scoping/#slotted-pseudo">
|
||||
<link rel="match" href="reference/green-text.html">
|
||||
<script src="/common/reftest-wait.js"></script>
|
||||
<p id="host">This text should be green.</p>
|
||||
<script>
|
||||
const root = host.attachShadow({mode:"open"});
|
||||
root.innerHTML = `
|
||||
<slot style="color:green" name="no-match"></slot>
|
||||
<slot style="color:red"></slot>
|
||||
`;
|
||||
host.offsetTop;
|
||||
root.querySelector("slot").removeAttribute("name");
|
||||
takeScreenshot();
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue