Repository navigation
Always emit a space for empty fallback values in CSS variables - #20373
Conversation
Confidence Score: 5/5This PR appears safe to merge. No blocking failure remains. Reviews (4): Last reviewed commit: "update changelog" | Re-trigger Greptile |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughUpdated CSS custom-property fallback values in 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
packages/tailwindcss/src/utilities.ts (1)
4181-4201: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winCover the pre-normalization CSS output.
The current tests normalize
var(--tw-*,)andvar(--tw-*, )to the same value. They cannot detect a regression to the old spelling. Add a serializer-level regression test forvar(--tw-grayscale, )and the other changed empty fallbacks before Lightning CSS normalization.Based on the PR objectives, Lightning CSS normalizes both forms in the current tests.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 6e71d20b-a64d-406c-9d39-1ddb461b645b
📒 Files selected for processing (1)
packages/tailwindcss/src/utilities.ts
This will bring the development version and production version closer together. It also means that the development version works in older supported browsers like Chrome v112 where the space is required (even though the spec allows both) There are no changes in tests just becaues we already run each test through Lightning CSS which normalizes these values: Input: ```css var(--tw-blur,) var(--tw-blur, ) ``` Lightning CSS output: ```css var(--tw-blur, ) var(--tw-blur, ) ```
0ca5f71 to
6aeb042
Compare
6aeb042 to
f3447f3
Compare
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@tailwindcss/vite](https://tailwindcss.com) ([source](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-vite)) | [`4.3.3` → `4.3.4`](https://renovatebot.com/diffs/npm/@tailwindcss%2fvite/4.3.3/4.3.4) |  |  | | [tailwindcss](https://tailwindcss.com) ([source](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss)) | [`4.3.3` → `4.3.4`](https://renovatebot.com/diffs/npm/tailwindcss/4.3.3/4.3.4) |  |  | --- ### Release Notes <details> <summary>tailwindlabs/tailwindcss (@​tailwindcss/vite)</summary> ### [`v4.3.4`](https://github.com/tailwindlabs/tailwindcss/blob/HEAD/CHANGELOG.md#434---2026-11-02) [Compare Source](tailwindlabs/tailwindcss@v4.3.3...v4.3.4) ##### Added - Add `@tailwindcss/turbopack`, a Turbopack loader for using Tailwind CSS with Next.js ([#​20367](tailwindlabs/tailwindcss#20367)) ##### Fixed - Ensure watch mode detects changes to symlinked `@source` files whose real paths aren't otherwise scanned ([#​20356](tailwindlabs/tailwindcss#20356)) - Ensure variants using `@scope` wrap generated utilities instead of nesting inside them ([#​20369](tailwindlabs/tailwindcss#20369)) - Ensure nested `@scope` rules preserve their scoping semantics when flattened ([#​20369](tailwindlabs/tailwindcss#20369)) - Preserve declarations directly inside `@scope` by wrapping them in `:where(:scope)` ([#​20369](tailwindlabs/tailwindcss#20369)) - Ensure generated utilities include a space in empty `var()` fallbacks (e.g. `var(--tw-blur,)` → `var(--tw-blur, )`) ([#​20373](tailwindlabs/tailwindcss#20373)) - Canonicalization: convert arbitrary breakpoint and container query variants to named equivalents (e.g. `max-[64rem]:flex` → `max-lg:flex`) ([#​20380](tailwindlabs/tailwindcss#20380)) - Prevent `@tailwindcss/vite` from crashing on every edit under Vite's experimental `bundledDev` mode ([#​20379](tailwindlabs/tailwindcss#20379)) - Ensure `@tailwindcss/oxide` falls back to WASM on platforms without native bindings ([#​20383](tailwindlabs/tailwindcss#20383)) - Extract class candidates from Ruby `%w` and `%W` literals using angle brackets or custom delimiters (e.g. `%w<flex>`, `%w|flex|`), including in Slim and Haml templates ([#​20387](tailwindlabs/tailwindcss#20387)) - Preserve whitespace in `--default(…)` values in functional `@utility` definitions (e.g. `--default(box alphabetic)` no longer becomes `boxalphabetic`) ([#​20392](tailwindlabs/tailwindcss#20392)) - Ensure automatic source detection respects negation-based `.gitignore` files (e.g. `/*` followed by `!/…` patterns) ([#​20397](tailwindlabs/tailwindcss#20397)) - Ensure root `theme('…')` namespace lookups in JavaScript plugins and config files return the full namespace object instead of the value of its `DEFAULT` key ([#​20399](tailwindlabs/tailwindcss#20399)) - Skip ignored directories when generating watch globs instead of walking their contents on every rebuild ([#​20408](tailwindlabs/tailwindcss#20408)) - Drop invalid UTF-8 candidates during class detection ([#​20389](tailwindlabs/tailwindcss#20389)) - Prevent `@tailwindcss/vite` from forcing full-page reloads for scanned files that Vite does not handle as modules (e.g. `.php` files) ([#​20414](tailwindlabs/tailwindcss#20414)) - Canonicalization: don't merge utilities that reference different theme variables set to CSS-wide keywords like `unset` ([#​20417](tailwindlabs/tailwindcss#20417)) - Don't generate utilities when a modifier is used that would otherwise be silently ignored (e.g. `rounded-sm/[5]`, `shadow-sm/foo`, `stroke-2/50`) ([#​20419](tailwindlabs/tailwindcss#20419)) - Preserve `and`, `or`, and `not` inside selectors in `supports-[…]` variants (e.g. `supports-[selector(a:not(.foo))]:flex`) ([#​20420](tailwindlabs/tailwindcss#20420)) - Don't warn about Angular's `::ng-deep` and `:host-context()` when optimizing CSS ([#​20434](tailwindlabs/tailwindcss#20434)) - Don't generate CSS for candidates containing an empty additional modifier (e.g. `bg-red-500/50/` and `group-hover/foo//bar:flex`) ([#​20466](tailwindlabs/tailwindcss#20466)) - Ensure `min-*`, `max-*`, and container query variants with decimal values are sorted numerically (e.g. `min-[40.25rem]` before `min-[40.5rem]`) ([#​20512](tailwindlabs/tailwindcss#20512)) - Ensure CSS comments ending with `\*/` are closed correctly instead of swallowing the CSS that follows (e.g. `/* C:\temp\*/`) ([#​20508](tailwindlabs/tailwindcss#20508)) - Improve style invalidation performance of `group-*` and `peer-*` variants ([#​20513](tailwindlabs/tailwindcss#20513)) - Ensure cached compilers release their `loadModule` and `loadStylesheet` callbacks after compilation ([#​20531](tailwindlabs/tailwindcss#20531)) - Canonicalization: preserve `&` when moving a pseudo-element into `*` or `**` (e.g. `[&_::before]:flex` → `**:[&::before]:flex`) ([#​20550](tailwindlabs/tailwindcss#20550)) - Ensure the `Set.prototype.intersection` polyfill in `canonicalizeCandidates(…)` returns the intersection instead of the first set on Node.js < 22 ([#​20562](tailwindlabs/tailwindcss#20562)) - Canonicalization: ensure inline `theme(…)` alphas with more than 2 decimals migrate to a percentage modifier with the same opacity (e.g. `theme(colors.red.500/.12345)` → `text-red-500/[12.345%]`, not `text-red-500/[12.345]`) ([#​20563](tailwindlabs/tailwindcss#20563)) - Canonicalization: preserve inline `theme(…)` alphas as an arbitrary percentage when a custom `--opacity-*` theme value would change the opacity (e.g. `theme(colors.red.500/50%)` → `text-red-500/[50%]` with `--opacity-50: 10%`) ([#​20563](tailwindlabs/tailwindcss#20563)) - Ensure the `@property` fallback isn't applied in Safari versions that no longer support `margin-trim: inline` ([#​20569](tailwindlabs/tailwindcss#20569)) - Treat viewport units like `dvmin` and `svi` and font-relative units like `cap` and `rex` as lengths in arbitrary values (e.g. `text-[10dvmin]` generates `font-size` instead of `color`) ([#​20516](tailwindlabs/tailwindcss#20516)) - Write plugin logs to stderr in `tailwindcss canonicalize` so they don't end up in the results on stdout ([#​20561](tailwindlabs/tailwindcss#20561)) - Extract class shorthands on later lines when Pug text, comments, or quoted attribute values contain unbalanced brackets, or a quote that doesn't start a string (e.g. `input(pattern=/"/.source)`) ([#​20547](tailwindlabs/tailwindcss#20547), [#​20572](tailwindlabs/tailwindcss#20572)) - Underline the correct occurrence of an unsupported data type in `--value(…)` warnings ([#​20554](tailwindlabs/tailwindcss#20554)) - Canonicalization: prefer an existing candidate when collapsing utilities over another utility with the same default theme value (e.g. `text-foreground text-primary` → `text-primary`, not `text-card-checked-border`) ([#​20540](tailwindlabs/tailwindcss#20540)) - Canonicalization: don't collapse utilities into a utility that uses another theme variable with the same default value (e.g. `mt-card mb-card` → `my-card`, not `my-4`) ([#​20574](tailwindlabs/tailwindcss#20574)) - Ensure `@tailwindcss/postcss` rewrites relative `url(…)`s of stylesheets that are inlined before it runs (e.g. `@import`s in Vite) in optimized builds ([#​20576](tailwindlabs/tailwindcss#20576)) - Drop nested rules that put a combinator after a pseudo-element when using pseudo-element variants (e.g. `selection:*` on a utility with a nested `& > *` rule) ([#​20575](tailwindlabs/tailwindcss#20575)) - Don't generate CSS for arbitrary values with unbalanced parentheses or brackets (e.g. `w-[calc(1px]` or `[--x:a[b]`) ([#​20577](tailwindlabs/tailwindcss#20577)) - Canonicalization: prevent `collapse: true` from taking exponentially longer when classes are linked through a utility that sets many properties (e.g. `sr-only`) ([#​20558](tailwindlabs/tailwindcss#20558)) - Ensure `&` is substituted inside `:-moz-any(…)` and `:-webkit-any(…)` in custom variants (e.g. `@custom-variant firefox (:-moz-any(&));`) ([#​20486](tailwindlabs/tailwindcss#20486)) - Ensure the standalone macOS binaries have a valid code signature, so macOS 27 no longer kills them at launch ([#​20578](tailwindlabs/tailwindcss#20578)) - Ensure `@tailwindcss/turbopack` and `@tailwindcss/webpack` rebuild when the input CSS changes (e.g. `next dev` with Turbopack no longer serves the CSS of the previous edit) ([#​20582](tailwindlabs/tailwindcss#20582)) - Canonicalization: don't drop a utility that sets a `--tw-*` variable when an unrelated property has the same value (e.g. `link mt-4` no longer becomes `mt-4` when `link` sets `margin-top: 16px` and `--tw-translate-x: 16px`) ([#​20593](tailwindlabs/tailwindcss#20593)) - Decode single-digit hexadecimal escapes in theme variable and `@utility` names as the CSS spec does (e.g. `@theme { --color-\0: red; }` no longer registers `--color-0`) ([#​20591](tailwindlabs/tailwindcss#20591)) - Don't treat `!important` inside strings, comments or `url()` in declaration values as the important flag (e.g. `content: "a !important b"`) ([#​20627](tailwindlabs/tailwindcss#20627)) - Parse a custom property at the end of the input when it has no trailing `;` (e.g. `--foo: bar` as the last declaration) ([#​20653](tailwindlabs/tailwindcss#20653)) - Keep a declaration without a `;` at the end of the CSS input (e.g. `color: red`) ([#​20655](tailwindlabs/tailwindcss#20655)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMTYuNCIsInVwZGF0ZWRJblZlciI6IjQ0LjIxNi40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
## pnpm-workspace.yaml (default) ## Dependency Updates | Package | From | To | Type | | --- | --- | --- | --- | | `@tailwindcss/vite` | 4.3.3 | 4.3.4 | patch | | `@tanstack/react-query` | 5.105.1 | 5.105.3 | patch | | `ai` | 7.0.159 | 7.0.162 | patch | | `mdast-util-to-markdown` | 2.2.1 | 2.2.2 | patch | | `rehype-pretty-code` | 0.14.5 | 0.14.6 | patch | | `seroval` | 1.7.6 | 1.7.7 | patch | | `tailwindcss` | 4.3.3 | 4.3.4 | patch | ## Release Notes <details> <summary><b>@<!---->tailwindcss/vite</b> (4.3.3 → 4.3.4)</summary> ### Added - Add `@tailwindcss/turbopack`, a Turbopack loader for using Tailwind CSS with Next.js ([#20367](tailwindlabs/tailwindcss#20367)) ### Fixed - Ensure watch mode detects changes to symlinked `@source` files whose real paths aren't otherwise scanned ([#20356](tailwindlabs/tailwindcss#20356)) - Ensure variants using `@scope` wrap generated utilities instead of nesting inside them ([#20369](tailwindlabs/tailwindcss#20369)) - Ensure nested `@scope` rules preserve their scoping semantics when flattened ([#20369](tailwindlabs/tailwindcss#20369)) - Preserve declarations directly inside `@scope` by wrapping them in `:where(:scope)` ([#20369](tailwindlabs/tailwindcss#20369)) - Ensure generated utilities include a space in empty `var()` fallbacks (e.g. `var(--tw-blur,)` → `var(--tw-blur, )`) ([#20373](tailwindlabs/tailwindcss#20373)) - Canonicalization: convert arbitrary breakpoint and container query variants to named equivalents (e.g. `max-[64rem]:flex` → `max-lg:flex`) ([#20380](tailwindlabs/tailwindcss#20380)) - Prevent `@tailwindcss/vite` from crashing on every edit under Vite's experimental `bundledDev` mode ([#20379](tailwindlabs/tailwindcss#20379)) - Ensure `@tailwindcss/oxide` falls back to WASM on platforms without native bindings ([#20383](tailwindlabs/tailwindcss#20383)) - Extract class candidates from Ruby `%w` and `%W` literals using angle brackets or custom delimiters (e.g. `%w<flex>`, `%w|flex|`), including in Slim and Haml templates ([#20387](tailwindlabs/tailwindcss#20387)) - Preserve whitespace in `--default(…)` values in functional `@utility` definitions (e.g. `--default(box alphabetic)` no longer becomes `boxalphabetic`) ([#20392](tailwindlabs/tailwindcss#20392)) - Ensure automatic sou …[full notes](https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.3.4) </details> <details> <summary><b>mdast-util-to-markdown</b> (2.2.1 → 2.2.2)</summary> #### Fix * a8a1a66 Fix empty `after`, `before` in unsafe patterns **Full Changelog**: syntax-tree/mdast-util-to-markdown@2.2.1...2.2.2 </details> <details> <summary><b>rehype-pretty-code</b> (0.14.5 → 0.14.6)</summary> ### Patch Changes - Fix: inline code highlighted with a `{:.token}` suffix is now always rendered as text. Previously its content was interpolated into an HTML string and re-parsed, so untrusted Markdown could inject HTML elements and attributes. As a result, entities in token code such as `<` now display as written, matching the `{:lang}` syntax. </details> <details> <summary><b>seroval</b> (1.7.6 → 1.7.7)</summary> ### Patch Changes - Serialization reads an object's class from its prototype instead of its `constructor` property, and reads `Date`, Temporal, typed array and `DataView` values through the built-in methods and getters instead of properties on the value. An object whose own `constructor` names a built-in class is now serialized as a plain object, and an object that only inherits a built-in prototype, such as `Object.create(Date.prototype)`, is rejected. - 00e3abf: Bundles that never create a live stream no longer include the `LiveStream` class: about 570 bytes gzipped less for `toJSONAsync`, `fromJSON` or `fromCrossJSON` on the production ESM build, measured with seroval's bundle size report. An object made with `Object.create(LiveStream.prototype)` is no longer treated as a live stream. </details> <details> <summary><b>tailwindcss</b> (4.3.3 → 4.3.4)</summary> ### Added - Add `@tailwindcss/turbopack`, a Turbopack loader for using Tailwind CSS with Next.js ([#20367](tailwindlabs/tailwindcss#20367)) ### Fixed - Ensure watch mode detects changes to symlinked `@source` files whose real paths aren't otherwise scanned ([#20356](tailwindlabs/tailwindcss#20356)) - Ensure variants using `@scope` wrap generated utilities instead of nesting inside them ([#20369](tailwindlabs/tailwindcss#20369)) - Ensure nested `@scope` rules preserve their scoping semantics when flattened ([#20369](tailwindlabs/tailwindcss#20369)) - Preserve declarations directly inside `@scope` by wrapping them in `:where(:scope)` ([#20369](tailwindlabs/tailwindcss#20369)) - Ensure generated utilities include a space in empty `var()` fallbacks (e.g. `var(--tw-blur,)` → `var(--tw-blur, )`) ([#20373](tailwindlabs/tailwindcss#20373)) - Canonicalization: convert arbitrary breakpoint and container query variants to named equivalents (e.g. `max-[64rem]:flex` → `max-lg:flex`) ([#20380](tailwindlabs/tailwindcss#20380)) - Prevent `@tailwindcss/vite` from crashing on every edit under Vite's experimental `bundledDev` mode ([#20379](tailwindlabs/tailwindcss#20379)) - Ensure `@tailwindcss/oxide` falls back to WASM on platforms without native bindings ([#20383](tailwindlabs/tailwindcss#20383)) - Extract class candidates from Ruby `%w` and `%W` literals using angle brackets or custom delimiters (e.g. `%w<flex>`, `%w|flex|`), including in Slim and Haml templates ([#20387](tailwindlabs/tailwindcss#20387)) - Preserve whitespace in `--default(…)` values in functional `@utility` definitions (e.g. `--default(box alphabetic)` no longer becomes `boxalphabetic`) ([#20392](tailwindlabs/tailwindcss#20392)) - Ensure automatic sou …[full notes](https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.3.4) </details> --- *This PR was auto-generated by [catalog-update-action](https://github.com/brandhaug/catalog-update-action).* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@tailwindcss/postcss](https://tailwindcss.com) ([source](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss)) | [`4.3.3` → `4.3.5`](https://renovatebot.com/diffs/npm/@tailwindcss%2fpostcss/4.3.3/4.3.5) |  |  | | [tailwindcss](https://tailwindcss.com) ([source](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss)) | [`4.3.3` → `4.3.5`](https://renovatebot.com/diffs/npm/tailwindcss/4.3.3/4.3.5) |  |  | --- >⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/2097) for more information. --- ### Release Notes <details> <summary>tailwindlabs/tailwindcss (@​tailwindcss/postcss)</summary> ### [`v4.3.5`](https://github.com/tailwindlabs/tailwindcss/blob/HEAD/CHANGELOG.md#435---2026-11-06) [Compare Source](tailwindlabs/tailwindcss@v4.3.4...v4.3.5) ##### Fixed - Canonicalization: improve performance in projects with many functional variant values (e.g. a `matchVariant` plugin with thousands of values) ([#​20663](tailwindlabs/tailwindcss#20663)) - Don't crash or create a fallback with the wrong color for a `color-mix(…)` without a color interpolation method (e.g. `color-mix(var(--color-red-500))` or `color-mix(currentcolor 50%, transparent)`) ([#​20658](tailwindlabs/tailwindcss#20658), [#​20666](tailwindlabs/tailwindcss#20666)) - Ensure `@tailwindcss/oxide-wasm32-wasi` loads instead of hanging forever (e.g. with `NAPI_RS_FORCE_WASI=error` or in WebContainers) ([#​20667](tailwindlabs/tailwindcss#20667)) - Remove `as: '*.css'` from the `@tailwindcss/turbopack` setup in its README, because it breaks CSS modules ([#​20660](tailwindlabs/tailwindcss#20660)) - Ignore `<!--` and `-->` between top-level rules in CSS instead of throwing or swallowing the next rule (e.g. `a { color: red } --> b { color: blue }`) ([#​20665](tailwindlabs/tailwindcss#20665)) - Ensure `@tailwindcss/oxide-wasm32-wasi` detects changed and new source files after the first scan (e.g. in WebContainers) ([#​20487](tailwindlabs/tailwindcss#20487)) - Prevent type errors with `skipLibCheck: false` caused by imports of unshipped modules in the `@tailwindcss/node` type declarations ([#​20632](tailwindlabs/tailwindcss#20632)) ### [`v4.3.4`](https://github.com/tailwindlabs/tailwindcss/blob/HEAD/CHANGELOG.md#434---2026-11-02) [Compare Source](tailwindlabs/tailwindcss@v4.3.3...v4.3.4) ##### Added - Add `@tailwindcss/turbopack`, a Turbopack loader for using Tailwind CSS with Next.js ([#​20367](tailwindlabs/tailwindcss#20367)) ##### Fixed - Ensure watch mode detects changes to symlinked `@source` files whose real paths aren't otherwise scanned ([#​20356](tailwindlabs/tailwindcss#20356)) - Ensure variants using `@scope` wrap generated utilities instead of nesting inside them ([#​20369](tailwindlabs/tailwindcss#20369)) - Ensure nested `@scope` rules preserve their scoping semantics when flattened ([#​20369](tailwindlabs/tailwindcss#20369)) - Preserve declarations directly inside `@scope` by wrapping them in `:where(:scope)` ([#​20369](tailwindlabs/tailwindcss#20369)) - Ensure generated utilities include a space in empty `var()` fallbacks (e.g. `var(--tw-blur,)` → `var(--tw-blur, )`) ([#​20373](tailwindlabs/tailwindcss#20373)) - Canonicalization: convert arbitrary breakpoint and container query variants to named equivalents (e.g. `max-[64rem]:flex` → `max-lg:flex`) ([#​20380](tailwindlabs/tailwindcss#20380)) - Prevent `@tailwindcss/vite` from crashing on every edit under Vite's experimental `bundledDev` mode ([#​20379](tailwindlabs/tailwindcss#20379)) - Ensure `@tailwindcss/oxide` falls back to WASM on platforms without native bindings (`@tailwindcss/oxide-wasm32-wasi` now installs on all platforms, but only loads when no native binding is available) ([#​20383](tailwindlabs/tailwindcss#20383)) - Extract class candidates from Ruby `%w` and `%W` literals using angle brackets or custom delimiters (e.g. `%w<flex>`, `%w|flex|`), including in Slim and Haml templates ([#​20387](tailwindlabs/tailwindcss#20387)) - Preserve whitespace in `--default(…)` values in functional `@utility` definitions (e.g. `--default(box alphabetic)` no longer becomes `boxalphabetic`) ([#​20392](tailwindlabs/tailwindcss#20392)) - Ensure automatic source detection respects negation-based `.gitignore` files (e.g. `/*` followed by `!/…` patterns) ([#​20397](tailwindlabs/tailwindcss#20397)) - Ensure root `theme('…')` namespace lookups in JavaScript plugins and config files return the full namespace object instead of the value of its `DEFAULT` key ([#​20399](tailwindlabs/tailwindcss#20399)) - Skip ignored directories when generating watch globs instead of walking their contents on every rebuild ([#​20408](tailwindlabs/tailwindcss#20408)) - Drop invalid UTF-8 candidates during class detection ([#​20389](tailwindlabs/tailwindcss#20389)) - Prevent `@tailwindcss/vite` from forcing full-page reloads for scanned files that Vite does not handle as modules (e.g. `.php` files) ([#​20414](tailwindlabs/tailwindcss#20414)) - Canonicalization: don't merge utilities that reference different theme variables set to CSS-wide keywords like `unset` ([#​20417](tailwindlabs/tailwindcss#20417)) - Don't generate utilities when a modifier is used that would otherwise be silently ignored (e.g. `rounded-sm/[5]`, `shadow-sm/foo`, `stroke-2/50`) ([#​20419](tailwindlabs/tailwindcss#20419)) - Preserve `and`, `or`, and `not` inside selectors in `supports-[…]` variants (e.g. `supports-[selector(a:not(.foo))]:flex`) ([#​20420](tailwindlabs/tailwindcss#20420)) - Don't warn about Angular's `::ng-deep` and `:host-context()` when optimizing CSS ([#​20434](tailwindlabs/tailwindcss#20434)) - Don't generate CSS for candidates containing an empty additional modifier (e.g. `bg-red-500/50/` and `group-hover/foo//bar:flex`) ([#​20466](tailwindlabs/tailwindcss#20466)) - Ensure `min-*`, `max-*`, and container query variants with decimal values are sorted numerically (e.g. `min-[40.25rem]` before `min-[40.5rem]`) ([#​20512](tailwindlabs/tailwindcss#20512)) - Ensure CSS comments ending with `\*/` are closed correctly instead of swallowing the CSS that follows (e.g. `/* C:\temp\*/`) ([#​20508](tailwindlabs/tailwindcss#20508)) - Improve style invalidation performance of `group-*` and `peer-*` variants ([#​20513](tailwindlabs/tailwindcss#20513)) - Ensure cached compilers release their `loadModule` and `loadStylesheet` callbacks after compilation ([#​20531](tailwindlabs/tailwindcss#20531)) - Canonicalization: preserve `&` when moving a pseudo-element into `*` or `**` (e.g. `[&_::before]:flex` → `**:[&::before]:flex`) ([#​20550](tailwindlabs/tailwindcss#20550)) - Ensure the `Set.prototype.intersection` polyfill in `canonicalizeCandidates(…)` returns the intersection instead of the first set on Node.js < 22 ([#​20562](tailwindlabs/tailwindcss#20562)) - Canonicalization: ensure inline `theme(…)` alphas with more than 2 decimals migrate to a percentage modifier with the same opacity (e.g. `theme(colors.red.500/.12345)` → `text-red-500/[12.345%]`, not `text-red-500/[12.345]`) ([#​20563](tailwindlabs/tailwindcss#20563)) - Canonicalization: preserve inline `theme(…)` alphas as an arbitrary percentage when a custom `--opacity-*` theme value would change the opacity (e.g. `theme(colors.red.500/50%)` → `text-red-500/[50%]` with `--opacity-50: 10%`) ([#​20563](tailwindlabs/tailwindcss#20563)) - Ensure the `@property` fallback isn't applied in Safari versions that no longer support `margin-trim: inline` ([#​20569](tailwindlabs/tailwindcss#20569)) - Treat viewport units like `dvmin` and `svi` and font-relative units like `cap` and `rex` as lengths in arbitrary values (e.g. `text-[10dvmin]` generates `font-size` instead of `color`) ([#​20516](tailwindlabs/tailwindcss#20516)) - Write plugin logs to stderr in `tailwindcss canonicalize` so they don't end up in the results on stdout ([#​20561](tailwindlabs/tailwindcss#20561)) - Extract class shorthands on later lines when Pug text, comments, or quoted attribute values contain unbalanced brackets, or a quote that doesn't start a string (e.g. `input(pattern=/"/.source)`) ([#​20547](tailwindlabs/tailwindcss#20547), [#​20572](tailwindlabs/tailwindcss#20572)) - Underline the correct occurrence of an unsupported data type in `--value(…)` warnings ([#​20554](tailwindlabs/tailwindcss#20554)) - Canonicalization: prefer an existing candidate when collapsing utilities over another utility with the same default theme value (e.g. `text-foreground text-primary` → `text-primary`, not `text-card-checked-border`) ([#​20540](tailwindlabs/tailwindcss#20540)) - Canonicalization: don't collapse utilities into a utility that uses another theme variable with the same default value (e.g. `mt-card mb-card` → `my-card`, not `my-4`) ([#​20574](tailwindlabs/tailwindcss#20574)) - Ensure `@tailwindcss/postcss` rewrites relative `url(…)`s of stylesheets that are inlined before it runs (e.g. `@import`s in Vite) in optimized builds ([#​20576](tailwindlabs/tailwindcss#20576)) - Drop nested rules that put a combinator after a pseudo-element when using pseudo-element variants (e.g. `selection:*` on a utility with a nested `& > *` rule) ([#​20575](tailwindlabs/tailwindcss#20575)) - Don't generate CSS for arbitrary values with unbalanced parentheses or brackets (e.g. `w-[calc(1px]` or `[--x:a[b]`) ([#​20577](tailwindlabs/tailwindcss#20577)) - Canonicalization: prevent `collapse: true` from taking exponentially longer when classes are linked through a utility that sets many properties (e.g. `sr-only`) ([#​20558](tailwindlabs/tailwindcss#20558)) - Ensure `&` is substituted inside `:-moz-any(…)` and `:-webkit-any(…)` in custom variants (e.g. `@custom-variant firefox (:-moz-any(&));`) ([#​20486](tailwindlabs/tailwindcss#20486)) - Ensure the standalone macOS binaries have a valid code signature, so macOS 27 no longer kills them at launch ([#​20578](tailwindlabs/tailwindcss#20578)) - Ensure `@tailwindcss/turbopack` and `@tailwindcss/webpack` rebuild when the input CSS changes (e.g. `next dev` with Turbopack no longer serves the CSS of the previous edit) ([#​20582](tailwindlabs/tailwindcss#20582)) - Canonicalization: don't drop a utility that sets a `--tw-*` variable when an unrelated property has the same value (e.g. `link mt-4` no longer becomes `mt-4` when `link` sets `margin-top: 16px` and `--tw-translate-x: 16px`) ([#​20593](tailwindlabs/tailwindcss#20593)) - Decode single-digit hexadecimal escapes in theme variable and `@utility` names as the CSS spec does (e.g. `@theme { --color-\0: red; }` no longer registers `--color-0`) ([#​20591](tailwindlabs/tailwindcss#20591)) - Don't treat `!important` inside strings, comments or `url()` in declaration values as the important flag (e.g. `content: "a !important b"`) ([#​20627](tailwindlabs/tailwindcss#20627)) - Parse a custom property at the end of the input when it has no trailing `;` (e.g. `--foo: bar` as the last declaration) ([#​20653](tailwindlabs/tailwindcss#20653)) - Keep a declaration without a `;` at the end of the CSS input (e.g. `color: red`) ([#​20655](tailwindlabs/tailwindcss#20655)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - "before 9am on tuesday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMDYuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjIwNi4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZSJdfQ==--> Reviewed-on: https://code.futo.org/harbor/harbor/pulls/2257
…er (#230, #240) Applies Dependabot #230 (undici, opened 2026-11-06, head 7dbf7ac) and #240 (npm-minor group, 5 updates, opened 2026-11-11, head b38259e) to frontend/, except #240's @lhci/cli 0.15.1 -> 0.16.0, which is not part of this commit. Each package takes the newest release of its major published before 2026-11-08T13:00Z, so tailwind and the visualizer land newer than the PRs' versions: undici 7.30.1 -> 7.30.2, lock only (via vite-ssg -> jsdom), as #230 @tailwindcss/vite and tailwindcss 4.3.3 -> 4.3.5 (#240: 4.3.4), with @tailwindcss/node, @tailwindcss/oxide and its twelve platform packages 4.3.3 -> 4.3.5 marked 18.1.2 -> 18.1.3 rollup-plugin-visualizer 7.1.1 -> 7.1.3 (#240: 7.1.2), dev only @tailwindcss/node 4.3.5 pins lightningcss 1.33.0 and asks for enhanced-resolve ^5.24.5 and magic-string ^1.1.0. So lightningcss and its platform packages move 1.32.0 -> 1.33.0 at the top level, where they now also serve vite (its nested 1.33.0 copies go away), enhanced-resolve moves 5.24.3 -> 5.26.1, and magic-string 1.4.5 is added under @tailwindcss/node. The dependencies bundled inside @tailwindcss/oxide-wasm32-wasi move with it: @emnapi/core and @emnapi/runtime 1.11.1 -> 1.11.3, @emnapi/wasi-threads 1.2.2 -> 1.2.3, @napi-rs/wasm-runtime 1.1.4 -> 1.2.2, @tybys/wasm-util 0.10.2 -> 0.10.3. The lock now records the libc field that the oxide and lightningcss Linux packages declare, so npm ci on glibc no longer installs their musl twins; and oxide-wasm32-wasi declares no cpu since 4.3.4, so it now installs on every platform and loads only where no native binding exists (tailwindlabs/tailwindcss#20383). package.json moves the @tailwindcss/vite, marked and rollup-plugin-visualizer ranges to the new versions, as #240 does; tailwindcss stays ^4.3.1, as in #240, and @tailwindcss/vite 4.3.5 pins it exactly. Against main the lock adds 1 entry, removes 12 and changes 37 plus the root's three ranges. Against #230 and #240 without the entries that only @lhci/cli 0.16.0 reaches, 33 moved entries are identical, 17 differ only by the newer tailwind and visualizer versions, and #240's other five moves (ws, default-browser, @opentelemetry/api and both tldts-core entries) are forced by @lhci/cli 0.16.0's lighthouse 13.6.0 and puppeteer-core 25.16.0, so they are not here. Cooldown: the 25 (name, version) pairs new to the lock were published between 2026-06-23 and 2026-11-08T10:50Z (rollup-plugin-visualizer 7.1.3), all before the 2026-11-08T13:00Z cut. Every moved registry entry's resolved URL, integrity, os/cpu/libc, engines and dependency lists equal the registry's manifest for that version. Written in node:24 (node 24.21.0, node@sha256:3d27e5c11e5786e309ec3e03f93ae536eb36e6e5eb3714d5eb3300a36157add0) with npm 12.0.2 on main's package.json and lock: install --package-lock-only --before=2026-11-08T13:00:00Z --allow-remote=all @tailwindcss/vite@^4.3.5 marked@^18.1.3 rollup-plugin-visualizer@^7.1.3 update undici --package-lock-only --before=2026-11-08T13:00:00Z npm 12 defaults allow-remote to none, and for a newly resolved package with bundled dependencies (@tailwindcss/oxide-wasm32-wasi) a lock-only install extracts the registry tarball by its URL, which that default refuses with EALLOWREMOTE; hence the flag on the first command. Every resolved URL in the lock is on registry.npmjs.org. A second install --package-lock-only, with or without --before, changes no byte and needs no flag; npm 11.6.1's ci --dry-run passes; after npm ci, npm ls --all reports no invalid, missing or extraneous entry. Build output: main and main with these two files, built the same way in the Playwright image (npm ci, then VITE_APP_VERSION=000000000000 npm run build:ssg), give 95 files each. 59 are byte-identical and 33 differ only in the names of 21 re-hashed assets. Three change: - the app CSS, from tailwindcss 4.3.4: empty var() fallbacks gain a space (tailwindlabs/tailwindcss#20373); group-hover variants are written as :is(:where(.group):hover .x), same specificity (tailwindlabs/tailwindcss#20513); and the @Property fallback guard tests margin-trim:block instead of margin-trim:inline (tailwindlabs/tailwindcss#20569) - the article route chunk, which carries marked - sw.js: the same 25 precache URLs, four HTML revisions changed, and otherwise only two minified identifiers swapped Every prerendered page differs only in asset names, so undici 7.30.2 changes nothing in what vite-ssg's jsdom renders. The visualizer runs only when ANALYZE is set; an ANALYZE build with 7.1.3 writes stats.html covering the same 248 modules as 7.1.1. undici 7.30.2 fixes six advisories that nodejs/undici published on 2026-11-05: GHSA-mqg3-3v4r-cm32 (high) and GHSA-7xg3-fphp-28hg, GHSA-5rm8-gv32-r954, GHSA-9v6h-8rgp-m69f, GHSA-3g9m-rv3r-w5w2 and GHSA-r4pc-4jcp-7pqc (medium): redirect cache poisoning and cross-user cache disclosure, credential stripping for tuple headers, crashes during cache replay, and an SRI bypass. None of them is in GitHub's global advisory database yet, so npm audit and Dependabot alerts do not list them. undici loads only inside vite-ssg's jsdom during build:ssg; it is not in dist. No advisory in that database covers any version this commit adds, and npm audit --package-lock-only reports the same 32 entries (11 advisories, all dev) as on main, 0 with --omit=dev. Verified in the pinned Playwright v1.64.1 image (node 24.22.1, npm 11.19.1) with ci-cd.yml's frontend-quality and e2e steps: npm ci, lint (0 errors, the same two vue/no-v-html warnings as main), type-check, 698 unit tests in 55 files, build:ssg with its dist invariants (25 precache entries), the e2e suite (72 passed, 1 skipped; all 23 visual baselines pass, the two card hover states among them) and verify:csp all pass. Coverage stays at 70.99 / 64.69 / 65.85 / 73.71 (statements, branches, functions, lines), as on main.
This PR always emits a space when a CSS variable uses an empty fallback value.
The spec does allow both
var(--tw-blur,)andvar(--tw-blur, ), but older browsers (that we support) don't always handle this correctly. Chrome v112 only works when the space is added for eaxmple.This PR will bring development and production a bit closer together now that we always emit the
, )variation for our built-in variables that use an empty fallback value.There are no changes in tests just becaues we already run each test through Lightning CSS which normalizes these values:
Input:
Lightning CSS output:
Fixes: #20371
Test plan
Testing it on the provided reproduction using Chrome v112:
Before:

After:

And as expected, the only diff in the CSS is this:
.grayscale { --tw-grayscale: grayscale(100%); - filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,); + filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, ); }