From 9ae525072bcf27eb0dfb047b36af946b62eeb901 Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Fri, 13 Dec 2024 12:53:08 +0100 Subject: [PATCH] Change Chrome target to 111 --- foo/input.css | 6 ++++++ foo/input.svelte | 3 +++ foo/out.css | 11 +++++++++++ packages/@tailwindcss-cli/src/commands/build/index.ts | 4 ++-- packages/@tailwindcss-postcss/src/index.ts | 4 ++-- packages/@tailwindcss-vite/src/index.ts | 4 ++-- packages/tailwindcss/src/test-utils/run.ts | 4 ++-- packages/tailwindcss/src/utilities.test.ts | 1 + 8 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 foo/input.css create mode 100644 foo/input.svelte create mode 100644 foo/out.css diff --git a/foo/input.css b/foo/input.css new file mode 100644 index 000000000000..7bbbba70cc36 --- /dev/null +++ b/foo/input.css @@ -0,0 +1,6 @@ +@theme { + --color-gray-500: oklch(0.551 0.027 264.364); + --color-gray-600: oklch(0.446 0.03 256.802); +} + +@tailwind utilities; diff --git a/foo/input.svelte b/foo/input.svelte new file mode 100644 index 000000000000..5911f17c4b2b --- /dev/null +++ b/foo/input.svelte @@ -0,0 +1,3 @@ +
+ +
diff --git a/foo/out.css b/foo/out.css new file mode 100644 index 000000000000..ed585e3ff828 --- /dev/null +++ b/foo/out.css @@ -0,0 +1,11 @@ +/*! tailwindcss v4.0.0-beta.6 | MIT License | https://tailwindcss.com */ +:root { + --color-gray-500: oklch(0.551 0.027 264.364); + --color-gray-600: oklch(0.446 0.03 256.802); +} +.bg-gray-500 { + background-color: var(--color-gray-500); +} +.bg-gray-600 { + background-color: var(--color-gray-600); +} diff --git a/packages/@tailwindcss-cli/src/commands/build/index.ts b/packages/@tailwindcss-cli/src/commands/build/index.ts index 2a711eae354a..bf1066e906ca 100644 --- a/packages/@tailwindcss-cli/src/commands/build/index.ts +++ b/packages/@tailwindcss-cli/src/commands/build/index.ts @@ -445,12 +445,12 @@ function optimizeCss( deepSelectorCombinator: true, }, include: Features.Nesting, - exclude: Features.LogicalProperties, + exclude: Features.LogicalProperties | Features.DirSelector, targets: { safari: (16 << 16) | (4 << 8), ios_saf: (16 << 16) | (4 << 8), firefox: 128 << 16, - chrome: 120 << 16, + chrome: 111 << 16, }, errorRecovery: true, }).code diff --git a/packages/@tailwindcss-postcss/src/index.ts b/packages/@tailwindcss-postcss/src/index.ts index c49c53ecf1ec..c69b9a87538f 100644 --- a/packages/@tailwindcss-postcss/src/index.ts +++ b/packages/@tailwindcss-postcss/src/index.ts @@ -317,12 +317,12 @@ function optimizeCss( deepSelectorCombinator: true, }, include: LightningCssFeatures.Nesting, - exclude: LightningCssFeatures.LogicalProperties, + exclude: LightningCssFeatures.LogicalProperties | LightningCssFeatures.DirSelector, targets: { safari: (16 << 16) | (4 << 8), ios_saf: (16 << 16) | (4 << 8), firefox: 128 << 16, - chrome: 120 << 16, + chrome: 111 << 16, }, errorRecovery: true, }).code diff --git a/packages/@tailwindcss-vite/src/index.ts b/packages/@tailwindcss-vite/src/index.ts index b85538b9f259..b3c9ace1e0f5 100644 --- a/packages/@tailwindcss-vite/src/index.ts +++ b/packages/@tailwindcss-vite/src/index.ts @@ -375,12 +375,12 @@ function optimizeCss( deepSelectorCombinator: true, }, include: LightningCssFeatures.Nesting, - exclude: LightningCssFeatures.LogicalProperties, + exclude: LightningCssFeatures.LogicalProperties | LightningCssFeatures.DirSelector, targets: { safari: (16 << 16) | (4 << 8), ios_saf: (16 << 16) | (4 << 8), firefox: 128 << 16, - chrome: 120 << 16, + chrome: 111 << 16, }, errorRecovery: true, }).code diff --git a/packages/tailwindcss/src/test-utils/run.ts b/packages/tailwindcss/src/test-utils/run.ts index 0aa99e3e23cd..3dde1d282b4d 100644 --- a/packages/tailwindcss/src/test-utils/run.ts +++ b/packages/tailwindcss/src/test-utils/run.ts @@ -28,12 +28,12 @@ export function optimizeCss( deepSelectorCombinator: true, }, include: Features.Nesting, - exclude: Features.LogicalProperties, + exclude: Features.LogicalProperties | Features.DirSelector, targets: { safari: (16 << 16) | (4 << 8), ios_saf: (16 << 16) | (4 << 8), firefox: 128 << 16, - chrome: 120 << 16, + chrome: 111 << 16, }, errorRecovery: true, }).code diff --git a/packages/tailwindcss/src/utilities.test.ts b/packages/tailwindcss/src/utilities.test.ts index 967da7221aba..aaf1986cb197 100644 --- a/packages/tailwindcss/src/utilities.test.ts +++ b/packages/tailwindcss/src/utilities.test.ts @@ -11825,6 +11825,7 @@ test('bg-clip', async () => { } .bg-clip-text { + -webkit-background-clip: text; background-clip: text; }" `)