mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +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,20 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Initial custom property values in :root::selection rule</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#highlight-cascade">
|
||||
<link rel="match" href="highlight-cascade-003-ref.html">
|
||||
<meta name="assert" value="This test verifies that the initial value given in a custom property registration is respected, when the property is referenced in ::selection styles but no value is defined. The initial value is not the guaranteed-invalid value, so the fallback value in var() is not used.">
|
||||
<script src="support/selections.js"></script>
|
||||
<style>
|
||||
@property --bg {
|
||||
syntax: "<color>";
|
||||
inherits: false;
|
||||
initial-value: green;
|
||||
}
|
||||
:root::selection {
|
||||
background-color: var(--bg, red);
|
||||
}
|
||||
</style>
|
||||
<main>PASS if background-color is green when selected</main>
|
||||
<script>
|
||||
selectNodeContents(document.querySelector("main"));
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue