Skip to content
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

[css-easing] Resolving curves not available at parse time #11211

Open
sesse opened this issue Nov 14, 2024 · 0 comments
Open

[css-easing] Resolving curves not available at parse time #11211

sesse opened this issue Nov 14, 2024 · 0 comments
Labels
css-easing-2 Current Work

Comments

@sesse
Copy link
Contributor

sesse commented Nov 14, 2024

https://drafts.csswg.org/css-easing/#funcdef-linear specifies:

“If an argument lacks a , its input progress value is initially empty, but that is immediately corrected by linear() canonicalization after parsing.”

However, it is not always possible to canonicalize at parse time. For instance, if any of the stops' x values is calc(0.5 + 0.2 * sign(1em - 1px)), we may need to wait until the style is computed before we know if it needs to be clamped to the previous point or not. How do we handle this? What if some of the stops may be resolvable but not all of them?

@Loirooriol Loirooriol added the css-easing-2 Current Work label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-easing-2 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants