@@ -137,7 +137,7 @@ test('it can generate focus-within variants', () => {
137137
138138test ( 'it can generate first-child variants' , ( ) => {
139139 const input = `
140- @variants first-child {
140+ @variants first {
141141 .banana { color: yellow; }
142142 .chocolate { color: brown; }
143143 }
@@ -146,8 +146,8 @@ test('it can generate first-child variants', () => {
146146 const output = `
147147 .banana { color: yellow; }
148148 .chocolate { color: brown; }
149- .first-child \\:banana:first-child { color: yellow; }
150- .first-child \\:chocolate:first-child { color: brown; }
149+ .first\\:banana:first-child { color: yellow; }
150+ .first\\:chocolate:first-child { color: brown; }
151151 `
152152
153153 return run ( input ) . then ( result => {
@@ -158,7 +158,7 @@ test('it can generate first-child variants', () => {
158158
159159test ( 'it can generate last-child variants' , ( ) => {
160160 const input = `
161- @variants last-child {
161+ @variants last {
162162 .banana { color: yellow; }
163163 .chocolate { color: brown; }
164164 }
@@ -167,8 +167,8 @@ test('it can generate last-child variants', () => {
167167 const output = `
168168 .banana { color: yellow; }
169169 .chocolate { color: brown; }
170- .last-child \\:banana:last-child { color: yellow; }
171- .last-child \\:chocolate:last-child { color: brown; }
170+ .last\\:banana:last-child { color: yellow; }
171+ .last\\:chocolate:last-child { color: brown; }
172172 `
173173
174174 return run ( input ) . then ( result => {
0 commit comments