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
77
88## [ Unreleased]
99
10- - Nothing yet!
10+ ### Fixed
11+
12+ - Fix support for container query utilities with arbitrary values ([ #12534 ] ( https://github.com/tailwindlabs/tailwindcss/pull/12534 ) )
1113
1214## [ 3.3.6] - 2023-12-04
1315
Original file line number Diff line number Diff line change @@ -40,7 +40,12 @@ function* buildRegExps(context) {
4040 // Utilities
4141 regex . pattern ( [
4242 // 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+ ] ) ,
4449
4550 // Normal/Arbitrary values
4651 regex . optional (
Original file line number Diff line number Diff line change @@ -517,3 +517,19 @@ it.each([
517517 expect ( extractions ) . toContain ( value )
518518 }
519519} )
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