This commit is contained in:
abdelrhmanahmed 2026-09-26 23:30:04 +00:00 • committed by GitHub
commit 8dfacfc361
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 25 additions and 0 deletions

View file

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Add `@tailwindcss/turbopack` package to run Tailwind CSS with Next.js ([20367](https://github.com/tailwindlabs/tailwindcss/pull/20367))
- Add `interpolate-size` utilities (`interpolate-size-allow`, `interpolate-size-numeric`) for CSS keyword animation support ([#20518](https://github.com/tailwindlabs/tailwindcss/pull/20518))
### Fixed

View file

@ -52,6 +52,7 @@ export default [
'display',
'field-sizing',
'interpolate-size',
'aspect-ratio',
'height',
'max-height',

View file

@ -3266,6 +3266,23 @@ test('field-sizing', async () => {
).toEqual('')
})
test('interpolate-size', async () => {
expect(await run(['interpolate-size-allow', 'interpolate-size-numeric'])).toMatchInlineSnapshot(`
"
.interpolate-size-allow {
interpolate-size: allow-keywords;
}
.interpolate-size-numeric {
interpolate-size: numeric-only;
}
"
`)
expect(
await run(['interpolate-size-[other]', '-interpolate-size-allow', '-interpolate-size-numeric']),
).toEqual('')
})
test('aspect-ratio', async () => {
expect(
await run(

View file

@ -989,6 +989,12 @@ export function createUtilities(theme: Theme) {
staticUtility('field-sizing-content', [['field-sizing', 'content']])
staticUtility('field-sizing-fixed', [['field-sizing', 'fixed']])
/**
* @css `interpolate-size`
*/
staticUtility('interpolate-size-allow', [['interpolate-size', 'allow-keywords']])
staticUtility('interpolate-size-numeric', [['interpolate-size', 'numeric-only']])
/**
* @css `aspect-ratio`
*/