-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
LibWeb: Parse the scroll driven animation CSS properties #6912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
LibWeb: Parse the scroll driven animation CSS properties #6912
Conversation
Avoids a crash when `animation-duration` was `auto`
The remaining failing tests in scroll-timeline-shorthand.html are due to either: a) incorrect tests, see web-platform-tests/wpt#56181 or; b) a wider issue where we collapse coordinating value list longhand properties to a single value when we shouldn't.
The remaining failing tests in view-timeline-shorthand.html are due to either: a) incorrect tests, see web-platform-tests/wpt#56181 or; b) a wider issue where we collapse coordinating value list longhand properties to a single value when we shouldn't.
Required for `animation-timeline` and the various `animation-trigger-*` properties within the `animation` coordinating value list
db51aa5 to
925bb54
Compare
|
Changes: |
AtkinsSJ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool! I wasn't expecting this any time soon. Just a couple of very minor things.
(It also bothers me every time reset-only longhands still have to be done manually, or coordinating value lists, or parsing a list not always returning a list. I'll have to see if I can revive my branch for the former. 😅)
| auto stringified_inset = inset_values[i]->to_string(mode); | ||
|
|
||
| if (stringified_inset != "auto"sv) | ||
| builder.appendff(" {}", inset_values[i]->to_string(mode)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use stringified_inset here.
The first step towards implementing CSS scroll driven animations.
Some of the imported tests continue to fail due to the fact that we serialize coordinating value list longhands (e.g. scroll-timeline-axis, animation-duration, etc) incorrectly in that if all values are the same we serialize them as a single value.
Gains us ~320 WPT tests.