mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision b'c9f81de4242294a0d694ecd5a63155acfe6bf49a'
This commit is contained in:
parent
8c1703219d
commit
632afc64ae
403 changed files with 7449 additions and 5597 deletions
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="help" href="https://drafts.css-houdini.org/css-properties-values-api-1">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<style>
|
||||
|
||||
@property --angle {
|
||||
syntax: "<angle>";
|
||||
inherits: false;
|
||||
initial-value: 0deg;
|
||||
}
|
||||
|
||||
@keyframes angle-animation {
|
||||
from { --angle: 0deg }
|
||||
to { --angle: 180deg }
|
||||
}
|
||||
|
||||
#target {
|
||||
animation: angle-animation 1000s linear -500s;
|
||||
background: linear-gradient(var(--angle), black, white);
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div id="target"></div>
|
||||
|
||||
<script>
|
||||
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(target).backgroundImage, 'linear-gradient(90deg, rgb(0, 0, 0), rgb(255, 255, 255))')
|
||||
}, "Animated custom property is applied in a shorthand property.");
|
||||
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue