mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Auto merge of #12118 - emilio:animation-shorthand, r=SimonSapin
style: Add support to the animation shorthand and fix parsing of animation-name <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Part of #11916. r? @SimonSapin <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12118) <!-- Reviewable:end -->
This commit is contained in:
commit
1fabfee27e
10 changed files with 249 additions and 59 deletions
|
@ -0,0 +1,23 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
@keyframes foo {
|
||||
from { background: white; animation-timing-function: ease; }
|
||||
to { background: black; }
|
||||
}
|
||||
|
||||
@keyframes bar {
|
||||
from { background: white }
|
||||
to { background: black }
|
||||
}
|
||||
|
||||
div {
|
||||
height: 50px;
|
||||
width: 100px;
|
||||
animation: foo 1s infinite steps(4, end);
|
||||
}
|
||||
.bar { animation-name: bar }
|
||||
</style>
|
||||
<p>You should see an eased animation in the first-element, and a stepped one in the second one</p>
|
||||
<div></div>
|
||||
<div class="bar"></div>
|
Loading…
Add table
Add a link
Reference in a new issue