Skip to content

Commit

Permalink
Change Chrome target to 111
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-spiess committed Dec 13, 2024
1 parent 4277857 commit 9ae5250
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 8 deletions.
6 changes: 6 additions & 0 deletions foo/input.css
Original file line number Diff line number Diff line change
@@ -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;
3 changes: 3 additions & 0 deletions foo/input.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class:bg-gray-500={isDisabled}>
<img class:bg-gray-600={isDisabled} />
</div>
11 changes: 11 additions & 0 deletions foo/out.css
Original file line number Diff line number Diff line change
@@ -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);
}
4 changes: 2 additions & 2 deletions packages/@tailwindcss-cli/src/commands/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/@tailwindcss-postcss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/@tailwindcss-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/tailwindcss/src/test-utils/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions packages/tailwindcss/src/utilities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11825,6 +11825,7 @@ test('bg-clip', async () => {
}
.bg-clip-text {
-webkit-background-clip: text;
background-clip: text;
}"
`)
Expand Down

0 comments on commit 9ae5250

Please sign in to comment.