File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ test('using the important modifier', () => {
135
135
136
136
test ( 'at-rules' , ( ) => {
137
137
let config = {
138
- content : [ { raw : html `<div class= "[@supports_(what:ever){&:hover} ]:underline" > </ div> ` } ] ,
138
+ content : [ { raw : html `<div class= "[@supports_(what:ever)]:underline" > </ div> ` } ] ,
139
139
corePlugins : { preflight : false } ,
140
140
}
141
141
@@ -150,7 +150,32 @@ test('at-rules', () => {
150
150
${ defaults }
151
151
152
152
@supports (what : ever) {
153
- .\[\@supports_\(what\:ever\)\{\&\:hover\}\]\:underline : hover {
153
+ .\[\@supports_\(what\:ever\)\]\:underline {
154
+ text-decoration-line : underline;
155
+ }
156
+ }
157
+ ` )
158
+ } )
159
+ } )
160
+
161
+ test ( 'at-rules with selector modifications' , ( ) => {
162
+ let config = {
163
+ content : [ { raw : html `<div class= "[@media_(hover:hover){&:hover}]:underline" > </ div> ` } ] ,
164
+ corePlugins : { preflight : false } ,
165
+ }
166
+
167
+ let input = css `
168
+ @tailwind base;
169
+ @tailwind components;
170
+ @tailwind utilities;
171
+ `
172
+
173
+ return run ( input , config ) . then ( ( result ) => {
174
+ expect ( result . css ) . toMatchFormattedCss ( css `
175
+ ${ defaults }
176
+
177
+ @media (hover : hover) {
178
+ .\[\@media_\(hover\:hover\)\{\&\:hover\}\]\:underline : hover {
154
179
text-decoration-line : underline;
155
180
}
156
181
}
You can’t perform that action at this time.
0 commit comments