-
Notifications
You must be signed in to change notification settings - Fork 657
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
[scroll-animations] Use CSSStyleValue for scroll offsets #4352
Comments
If we do this, it would probably be good to remove support for supplying a string like "42px", that way we can infer that strings are keywords. (The |
We've removed scroll offsets but we'll probably want to consider the same for whatever programmatic API we add to set view-timeline-inset. |
Closing this issue in favor of the specific issues linked relevant to the new APIs using offsets. |
Just a thought:
Perhaps it's appropriate to use
CSSStyleValue
from css-typed-om to get and set scroll offsets. It would allow specifying offsets in a "structured" manner, such asCSS.px(42)
rather than"42px"
.Specifically, this is how that could look:
The text was updated successfully, but these errors were encountered: