File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -1134,7 +1134,7 @@ crosscheck(({ stable, oxide }) => {
1134
1134
darkMode : 'class' ,
1135
1135
content : [
1136
1136
{
1137
- raw : html ` <div class="dark:rtl:italic" /> ` ,
1137
+ raw : html `<div class="dark:rtl:italic" />` ,
1138
1138
} ,
1139
1139
] ,
1140
1140
corePlugins : { preflight : false } ,
@@ -1152,4 +1152,28 @@ crosscheck(({ stable, oxide }) => {
1152
1152
}
1153
1153
` )
1154
1154
} )
1155
+
1156
+ test ( 'stacking dark and rtl variants with pseudo elements' , async ( ) => {
1157
+ let config = {
1158
+ darkMode : 'class' ,
1159
+ content : [
1160
+ {
1161
+ raw : html `<div class= "dark:rtl:placeholder:italic" / > ` ,
1162
+ } ,
1163
+ ] ,
1164
+ corePlugins : { preflight : false } ,
1165
+ }
1166
+
1167
+ let input = css `
1168
+ @tailwind utilities;
1169
+ `
1170
+
1171
+ let result = await run ( input , config )
1172
+
1173
+ expect ( result . css ) . toMatchFormattedCss ( css `
1174
+ : is (.dark : is ([dir = 'rtl' ] .dark\:rtl\:placeholder\:italic ))::placeholder {
1175
+ font-style : italic;
1176
+ }
1177
+ ` )
1178
+ } )
1155
1179
} )
You can’t perform that action at this time.
0 commit comments