mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<meta name="assert"
|
||||
content="This test checks the syntax output of frame timing functions" />
|
||||
<title>Frames timing function syntax tests</title>
|
||||
<link rel="help"
|
||||
href="https://drafts.csswg.org/css-timing/#frames-timing-functions">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="testcommon.js"></script>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
test(function(t) {
|
||||
const div = createDiv(t);
|
||||
div.style.animation = 'abc 1s ease-in';
|
||||
div.style.animationTimingFunction = 'frames(1)';
|
||||
assert_equals(getComputedStyle(div).animationTimingFunction, 'ease-in');
|
||||
}, 'The number of frames must be a positive integer greater than 1, or we ' +
|
||||
'fallback to the previously-set easing');
|
||||
|
||||
test(function(t) {
|
||||
const div = createDiv(t);
|
||||
div.style.animation = 'abc 1s frames( 2 )';
|
||||
assert_equals(getComputedStyle(div).animationTimingFunction, 'frames(2)');
|
||||
}, 'The serialization of frames is \'frames(n)\', n is the number of frames');
|
||||
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue