mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
LibWeb/CSS: Use "0s" as the initial value for animation-duration
This commit is contained in:
parent
e1f6a170d5
commit
ecd6636b3e
Notes:
github-actions[bot]
2025-03-22 16:05:28 +00:00
Author: https://github.com/tcl3
Commit: ecd6636b3e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4041
6 changed files with 62 additions and 13 deletions
|
@ -208,7 +208,7 @@
|
||||||
"affects-layout": false,
|
"affects-layout": false,
|
||||||
"animation-type": "none",
|
"animation-type": "none",
|
||||||
"inherited": false,
|
"inherited": false,
|
||||||
"initial": "auto",
|
"initial": "0s",
|
||||||
"valid-types": [
|
"valid-types": [
|
||||||
"time [0,∞]"
|
"time [0,∞]"
|
||||||
],
|
],
|
||||||
|
|
|
@ -9,18 +9,18 @@ All supported properties and their default values exposed from CSSStylePropertie
|
||||||
'WebkitAlignSelf': 'auto'
|
'WebkitAlignSelf': 'auto'
|
||||||
'webkitAlignSelf': 'auto'
|
'webkitAlignSelf': 'auto'
|
||||||
'-webkit-align-self': 'auto'
|
'-webkit-align-self': 'auto'
|
||||||
'WebkitAnimation': 'none auto ease 1 normal running 0s none'
|
'WebkitAnimation': 'none 0s ease 1 normal running 0s none'
|
||||||
'webkitAnimation': 'none auto ease 1 normal running 0s none'
|
'webkitAnimation': 'none 0s ease 1 normal running 0s none'
|
||||||
'-webkit-animation': 'none auto ease 1 normal running 0s none'
|
'-webkit-animation': 'none 0s ease 1 normal running 0s none'
|
||||||
'WebkitAnimationDelay': '0s'
|
'WebkitAnimationDelay': '0s'
|
||||||
'webkitAnimationDelay': '0s'
|
'webkitAnimationDelay': '0s'
|
||||||
'-webkit-animation-delay': '0s'
|
'-webkit-animation-delay': '0s'
|
||||||
'WebkitAnimationDirection': 'normal'
|
'WebkitAnimationDirection': 'normal'
|
||||||
'webkitAnimationDirection': 'normal'
|
'webkitAnimationDirection': 'normal'
|
||||||
'-webkit-animation-direction': 'normal'
|
'-webkit-animation-direction': 'normal'
|
||||||
'WebkitAnimationDuration': 'auto'
|
'WebkitAnimationDuration': '0s'
|
||||||
'webkitAnimationDuration': 'auto'
|
'webkitAnimationDuration': '0s'
|
||||||
'-webkit-animation-duration': 'auto'
|
'-webkit-animation-duration': '0s'
|
||||||
'WebkitAnimationFillMode': 'none'
|
'WebkitAnimationFillMode': 'none'
|
||||||
'webkitAnimationFillMode': 'none'
|
'webkitAnimationFillMode': 'none'
|
||||||
'-webkit-animation-fill-mode': 'none'
|
'-webkit-animation-fill-mode': 'none'
|
||||||
|
@ -137,13 +137,13 @@ All supported properties and their default values exposed from CSSStylePropertie
|
||||||
'align-items': 'normal'
|
'align-items': 'normal'
|
||||||
'alignSelf': 'auto'
|
'alignSelf': 'auto'
|
||||||
'align-self': 'auto'
|
'align-self': 'auto'
|
||||||
'animation': 'none auto ease 1 normal running 0s none'
|
'animation': 'none 0s ease 1 normal running 0s none'
|
||||||
'animationDelay': '0s'
|
'animationDelay': '0s'
|
||||||
'animation-delay': '0s'
|
'animation-delay': '0s'
|
||||||
'animationDirection': 'normal'
|
'animationDirection': 'normal'
|
||||||
'animation-direction': 'normal'
|
'animation-direction': 'normal'
|
||||||
'animationDuration': 'auto'
|
'animationDuration': '0s'
|
||||||
'animation-duration': 'auto'
|
'animation-duration': '0s'
|
||||||
'animationFillMode': 'none'
|
'animationFillMode': 'none'
|
||||||
'animation-fill-mode': 'none'
|
'animation-fill-mode': 'none'
|
||||||
'animationIterationCount': '1'
|
'animationIterationCount': '1'
|
||||||
|
|
|
@ -65,7 +65,7 @@ align-items: normal
|
||||||
align-self: auto
|
align-self: auto
|
||||||
animation-delay: 0s
|
animation-delay: 0s
|
||||||
animation-direction: normal
|
animation-direction: normal
|
||||||
animation-duration: auto
|
animation-duration: 0s
|
||||||
animation-fill-mode: none
|
animation-fill-mode: none
|
||||||
animation-iteration-count: 1
|
animation-iteration-count: 1
|
||||||
animation-name: none
|
animation-name: none
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
At time 400:
|
At time 400:
|
||||||
accent-color: rgb(78, 88, 99)
|
accent-color: rgb(78, 88, 99)
|
||||||
align-content: flex-start
|
align-content: flex-start
|
||||||
animation-duration: auto
|
animation-duration: 0s
|
||||||
aspect-ratio: 1.54415 / 1
|
aspect-ratio: 1.54415 / 1
|
||||||
background-color: rgb(78, 88, 99)
|
background-color: rgb(78, 88, 99)
|
||||||
background-repeat: repeat-x
|
background-repeat: repeat-x
|
||||||
|
@ -13,7 +13,7 @@ At time 400:
|
||||||
At time 750:
|
At time 750:
|
||||||
accent-color: rgb(147, 157, 168)
|
accent-color: rgb(147, 157, 168)
|
||||||
align-content: space-between
|
align-content: space-between
|
||||||
animation-duration: auto
|
animation-duration: 0s
|
||||||
aspect-ratio: 1.36506 / 1
|
aspect-ratio: 1.36506 / 1
|
||||||
background-color: rgb(147, 157, 168)
|
background-color: rgb(147, 157, 168)
|
||||||
background-repeat: space
|
background-repeat: space
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
Harness status: OK
|
||||||
|
|
||||||
|
Found 16 tests
|
||||||
|
|
||||||
|
16 Pass
|
||||||
|
Pass Property animation-delay has initial value 0s
|
||||||
|
Pass Property animation-delay does not inherit
|
||||||
|
Pass Property animation-direction has initial value normal
|
||||||
|
Pass Property animation-direction does not inherit
|
||||||
|
Pass Property animation-duration has initial value 0s
|
||||||
|
Pass Property animation-duration does not inherit
|
||||||
|
Pass Property animation-fill-mode has initial value none
|
||||||
|
Pass Property animation-fill-mode does not inherit
|
||||||
|
Pass Property animation-iteration-count has initial value 1
|
||||||
|
Pass Property animation-iteration-count does not inherit
|
||||||
|
Pass Property animation-name has initial value none
|
||||||
|
Pass Property animation-name does not inherit
|
||||||
|
Pass Property animation-play-state has initial value running
|
||||||
|
Pass Property animation-play-state does not inherit
|
||||||
|
Pass Property animation-timing-function has initial value ease
|
||||||
|
Pass Property animation-timing-function does not inherit
|
|
@ -0,0 +1,28 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Inheritance of CSS Animations properties</title>
|
||||||
|
<link rel="help" href="https://drafts.csswg.org/css-animations/#property-index">
|
||||||
|
<meta name="assert" content="Properties inherit or not according to the spec.">
|
||||||
|
<meta name="assert" content="Properties have initial values according to the spec.">
|
||||||
|
<script src="../../resources/testharness.js"></script>
|
||||||
|
<script src="../../resources/testharnessreport.js"></script>
|
||||||
|
<script src="../../css/support/inheritance-testcommon.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="container">
|
||||||
|
<div id="target"></div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
assert_not_inherited('animation-delay', '0s', '2s');
|
||||||
|
assert_not_inherited('animation-direction', 'normal', 'reverse');
|
||||||
|
assert_not_inherited('animation-duration', '0s', '3s');
|
||||||
|
assert_not_inherited('animation-fill-mode', 'none', 'forwards');
|
||||||
|
assert_not_inherited('animation-iteration-count', '1', '4');
|
||||||
|
assert_not_inherited('animation-name', 'none', 'spinner');
|
||||||
|
assert_not_inherited('animation-play-state', 'running', 'paused');
|
||||||
|
assert_not_inherited('animation-timing-function', 'ease', 'linear');
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue