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

progressive enhancement of open/close animation with calc-size() #11

Open
argyleink opened this issue Aug 29, 2024 · 1 comment
Open

Comments

@argyleink
Copy link
Contributor

https://codepen.io/yisi/pen/MWdajwr

(coming soon)

@bramus
Copy link

bramus commented Aug 29, 2024

Better to declare interpolate-size: allow-keywords on the details element. calc-size() is only recommended if you want to do calculations on the computed size. In most cases you don’t need to, and adding interpolate-size: allow-keywords is the simpler opt-in.

(If you want, you could set this on :root in your projects and be done, as the property inherits)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants