web-platform-tests / web-platform-tests/interop
CSS `interpolate-size` and `calc-size()`
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 524
- Forks
- 35
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 10
Description
Description
The CSS interpolate-size property allows a page to opt in to animations and transitions of CSS intrinsic sizing keywords such as auto, min-content, fit-content, etc. A common use case is to transition between height: 0 and height: auto, for example in accordion components.
:root {
interpolate-size: allow-keywords;
}
Closely related is the new calc-size() function, which allows you to perform calculations on intrinsic size values (not supported by the regular calc() function).
.foo {
width: calc-size(min-content, size + 100px);
}
These features are supported in Chrome v129.
References:
- https://developer.chrome.com/docs/css-ui/animate-to-height-auto
- https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/calc-size
Specification
web-feature
- https://web-platform-dx.github.io/web-features-explorer/features/calc-size/
- https://web-platform-dx.github.io/web-features-explorer/features/interpolate-size/
Test Links
Additional Signals
- Mozilla standards position: positive
- WebKit standards position: pending
- Dev signal: last year's proposal got 81 likes: https://github.com/web-platform-tests/interop/issues/1008
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CSS Values Level 5 specification, the two web-feature pages, and the linked WPT results for calc-size and interpolate-size. Determine how the Interop project represents these features and what existing test coverage shows; done means the requested treatment of both CSS features is recorded consistently with the project and supported by the relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100