mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'
This commit is contained in:
parent
4401622eb1
commit
b77ad115f6
16832 changed files with 270819 additions and 87621 deletions
|
@ -0,0 +1,27 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Pseudo-Elements Test: ::target-text color rendering - with transparent selection</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-pseudo/#selectordef-target-text">
|
||||
<link rel="match" href="target-text-lime-green-ref.html">
|
||||
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
|
||||
<style>
|
||||
p::target-text {
|
||||
background-color: green;
|
||||
color: transparent;
|
||||
}
|
||||
p::selection {
|
||||
background-color: transparent;
|
||||
color: lime;
|
||||
}
|
||||
#sel {
|
||||
font-family: Ahem;
|
||||
}
|
||||
</style>
|
||||
<p>PASS if there are two segments of lime squares with a green square between below.</p>
|
||||
<p id="sel">match me</p>
|
||||
<script>
|
||||
window.location.hash = "#:~:text=match%20me";
|
||||
let range = document.createRange();
|
||||
range.selectNodeContents(sel);
|
||||
window.getSelection().addRange(range);
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue