File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
- - Nothing yet!
10
+ ### Fixed
11
+
12
+ - Fix support for container query utilities with arbitrary values ([ #12534 ] ( https://github.com/tailwindlabs/tailwindcss/pull/12534 ) )
11
13
12
14
## [ 3.3.6] - 2023-12-04
13
15
Original file line number Diff line number Diff line change @@ -40,7 +40,12 @@ function* buildRegExps(context) {
40
40
// Utilities
41
41
regex . pattern ( [
42
42
// Utility Name / Group Name
43
- / - ? (?: \w + ) / ,
43
+ regex . any ( [
44
+ / - ? (?: \w + ) / ,
45
+
46
+ // This is here to make sure @container supports everything that other utilities do
47
+ / @ (?: \w + ) / ,
48
+ ] ) ,
44
49
45
50
// Normal/Arbitrary values
46
51
regex . optional (
Original file line number Diff line number Diff line change @@ -517,3 +517,19 @@ it.each([
517
517
expect ( extractions ) . toContain ( value )
518
518
}
519
519
} )
520
+
521
+ it . each ( [
522
+ [ '@container' , [ '@container' ] ] ,
523
+ [ '@container/sidebar' , [ '@container/sidebar' ] ] ,
524
+ [ '@container/[sidebar]' , [ '@container/[sidebar]' ] ] ,
525
+ [ '@container-size' , [ '@container-size' ] ] ,
526
+ [ '@container-size/sidebar' , [ '@container-size/sidebar' ] ] ,
527
+ [ '@container-[size]/sidebar' , [ '@container-[size]/sidebar' ] ] ,
528
+ [ '@container-[size]/[sidebar]' , [ '@container-[size]/[sidebar]' ] ] ,
529
+ ] ) ( 'should support utilities starting with @ (%#)' , async ( content , expectations ) => {
530
+ let extractions = defaultExtractor ( content )
531
+
532
+ for ( let value of expectations ) {
533
+ expect ( extractions ) . toContain ( value )
534
+ }
535
+ } )
You can’t perform that action at this time.
0 commit comments