Skip to content

Commit 04dcf27

Browse files
Change Chrome target to 111 (#15389)
Resolves #15387 This PR changes the Chrome target to 111. We initially picked 120 because of the unnecessary `:dir()` down-leveling but we that was maybe a bit too recent as it was causing some necessary prefixes to not be generated (e.g. `-webkit-background-clip`). This PR changes it to 111 which we require for the `color-mix()` function. To work around the `:dir()` down-leveling we also disable the `DirSelector` lightningcss feature which is used to control this behavior: https://sourcegraph.com/github.com/parcel-bundler/lightningcss/-/blob/src/selector.rs?L1964-1965
1 parent 4277857 commit 04dcf27

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
- Fix missing `shadow-none` suggestion in IntelliSense ([#15342](https://github.com/tailwindlabs/tailwindcss/pull/15342))
1919
- Optimize AST before printing for IntelliSense ([#15347](https://github.com/tailwindlabs/tailwindcss/pull/15347))
2020
- Improve debug logs to get better insights ([#15303](https://github.com/tailwindlabs/tailwindcss/pull/15303))
21+
- Generate vendor prefixes for Chrome features trialed between 111 and 119. ([#15389](https://github.com/tailwindlabs/tailwindcss/pull/15389))
2122

2223
### Changed
2324

Diff for: packages/@tailwindcss-cli/src/commands/build/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -445,12 +445,12 @@ function optimizeCss(
445445
deepSelectorCombinator: true,
446446
},
447447
include: Features.Nesting,
448-
exclude: Features.LogicalProperties,
448+
exclude: Features.LogicalProperties | Features.DirSelector,
449449
targets: {
450450
safari: (16 << 16) | (4 << 8),
451451
ios_saf: (16 << 16) | (4 << 8),
452452
firefox: 128 << 16,
453-
chrome: 120 << 16,
453+
chrome: 111 << 16,
454454
},
455455
errorRecovery: true,
456456
}).code

Diff for: packages/@tailwindcss-postcss/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,12 @@ function optimizeCss(
317317
deepSelectorCombinator: true,
318318
},
319319
include: LightningCssFeatures.Nesting,
320-
exclude: LightningCssFeatures.LogicalProperties,
320+
exclude: LightningCssFeatures.LogicalProperties | LightningCssFeatures.DirSelector,
321321
targets: {
322322
safari: (16 << 16) | (4 << 8),
323323
ios_saf: (16 << 16) | (4 << 8),
324324
firefox: 128 << 16,
325-
chrome: 120 << 16,
325+
chrome: 111 << 16,
326326
},
327327
errorRecovery: true,
328328
}).code

Diff for: packages/@tailwindcss-vite/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,12 @@ function optimizeCss(
375375
deepSelectorCombinator: true,
376376
},
377377
include: LightningCssFeatures.Nesting,
378-
exclude: LightningCssFeatures.LogicalProperties,
378+
exclude: LightningCssFeatures.LogicalProperties | LightningCssFeatures.DirSelector,
379379
targets: {
380380
safari: (16 << 16) | (4 << 8),
381381
ios_saf: (16 << 16) | (4 << 8),
382382
firefox: 128 << 16,
383-
chrome: 120 << 16,
383+
chrome: 111 << 16,
384384
},
385385
errorRecovery: true,
386386
}).code

Diff for: packages/tailwindcss/src/test-utils/run.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ export function optimizeCss(
2828
deepSelectorCombinator: true,
2929
},
3030
include: Features.Nesting,
31-
exclude: Features.LogicalProperties,
31+
exclude: Features.LogicalProperties | Features.DirSelector,
3232
targets: {
3333
safari: (16 << 16) | (4 << 8),
3434
ios_saf: (16 << 16) | (4 << 8),
3535
firefox: 128 << 16,
36-
chrome: 120 << 16,
36+
chrome: 111 << 16,
3737
},
3838
errorRecovery: true,
3939
}).code

Diff for: packages/tailwindcss/src/utilities.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -11825,6 +11825,7 @@ test('bg-clip', async () => {
1182511825
}
1182611826
1182711827
.bg-clip-text {
11828+
-webkit-background-clip: text;
1182811829
background-clip: text;
1182911830
}"
1183011831
`)

0 commit comments

Comments
 (0)