diff --git a/CHANGELOG.md b/CHANGELOG.md index 81c863478c6e..8aa30fd036f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Nothing yet! +## [3.4.11] - 2024-09-11 + +### Fixed + +- Allow `anchor-size(…)` in arbitrary values ([#14393](https://github.com/tailwindlabs/tailwindcss/pull/14393)) + ## [3.4.10] - 2024-08-13 ### Fixed @@ -2431,7 +2437,8 @@ No release notes - Everything! -[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.10...HEAD +[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.11...HEAD +[3.4.11]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.10...v3.4.11 [3.4.10]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.9...v3.4.10 [3.4.9]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.8...v3.4.9 [3.4.8]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.7...v3.4.8 diff --git a/package-lock.json b/package-lock.json index a7f6e0e1aada..315877375351 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "tailwindcss", - "version": "3.4.10", + "version": "3.4.11", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "tailwindcss", - "version": "3.4.10", + "version": "3.4.11", "license": "MIT", "dependencies": { "@alloc/quick-lru": "^5.2.0", diff --git a/package.json b/package.json index fd6d3aa6218f..b34a8ad7d524 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tailwindcss", - "version": "3.4.10", + "version": "3.4.11", "description": "A utility-first CSS framework for rapidly building custom user interfaces.", "license": "MIT", "main": "lib/index.js", diff --git a/src/util/dataTypes.js b/src/util/dataTypes.js index e1db13754e45..9447732938cd 100644 --- a/src/util/dataTypes.js +++ b/src/util/dataTypes.js @@ -147,6 +147,8 @@ function normalizeMathOperatorSpacing(value) { 'repeating-radial-gradient', 'repeating-linear-gradient', 'repeating-conic-gradient', + + 'anchor-size', ] return value.replace(/(calc|min|max|clamp)\(.+\)/g, (match) => { diff --git a/tests/normalize-data-types.test.js b/tests/normalize-data-types.test.js index ba995f43006f..1c302ec28e68 100644 --- a/tests/normalize-data-types.test.js +++ b/tests/normalize-data-types.test.js @@ -96,6 +96,9 @@ let table = [ '[content-start] calc(100% - 1px) [content-end] minmax(1rem,1fr)', ], + // Prevent formatting functions that are not math functions + ['w-[calc(anchor-size(width)+8px)]', 'w-[calc(anchor-size(width) + 8px)]'], + // Misc ['color(0_0_0/1.0)', 'color(0 0 0/1.0)'], ['color(0_0_0_/_1.0)', 'color(0 0 0 / 1.0)'],