@@ -95,28 +95,28 @@ test('there are default directions', () => {
9595 } ) . then ( css => {
9696 expect ( css ) . toMatchCss ( `
9797 .bg-gradient-t-red {
98- background-image: linear-gradient(to top, transparent , #f00);
98+ background-image: linear-gradient(to top, rgba(255, 0, 0, 0) , #f00);
9999 }
100100 .bg-gradient-tr-red {
101- background-image: linear-gradient(to top right, transparent , #f00);
101+ background-image: linear-gradient(to top right, rgba(255, 0, 0, 0) , #f00);
102102 }
103103 .bg-gradient-r-red {
104- background-image: linear-gradient(to right, transparent , #f00);
104+ background-image: linear-gradient(to right, rgba(255, 0, 0, 0) , #f00);
105105 }
106106 .bg-gradient-br-red {
107- background-image: linear-gradient(to bottom right, transparent , #f00);
107+ background-image: linear-gradient(to bottom right, rgba(255, 0, 0, 0) , #f00);
108108 }
109109 .bg-gradient-b-red {
110- background-image: linear-gradient(to bottom, transparent , #f00);
110+ background-image: linear-gradient(to bottom, rgba(255, 0, 0, 0) , #f00);
111111 }
112112 .bg-gradient-bl-red {
113- background-image: linear-gradient(to bottom left, transparent , #f00);
113+ background-image: linear-gradient(to bottom left, rgba(255, 0, 0, 0) , #f00);
114114 }
115115 .bg-gradient-l-red {
116- background-image: linear-gradient(to left, transparent , #f00);
116+ background-image: linear-gradient(to left, rgba(255, 0, 0, 0) , #f00);
117117 }
118118 .bg-gradient-tl-red {
119- background-image: linear-gradient(to top left, transparent , #f00);
119+ background-image: linear-gradient(to top left, rgba(255, 0, 0, 0) , #f00);
120120 }
121121 ` ) ;
122122 } ) ;
@@ -142,13 +142,13 @@ test('directions can be customized', () => {
142142 } ) . then ( css => {
143143 expect ( css ) . toMatchCss ( `
144144 .bg-gradient-to-top-red {
145- background-image: linear-gradient(to top, transparent , #f00);
145+ background-image: linear-gradient(to top, rgba(255, 0, 0, 0) , #f00);
146146 }
147147 .bg-gradient-to-top-green {
148- background-image: linear-gradient(to top, transparent , #0f0);
148+ background-image: linear-gradient(to top, rgba(0, 255, 0, 0) , #0f0);
149149 }
150150 .bg-gradient-to-top-blue {
151- background-image: linear-gradient(to top, transparent , #00f);
151+ background-image: linear-gradient(to top, rgba(0, 0, 255, 0) , #00f);
152152 }
153153 ` ) ;
154154 } ) ;
@@ -202,16 +202,16 @@ test('multiple directions and multiple gradients can be used together', () => {
202202 } ) . then ( css => {
203203 expect ( css ) . toMatchCss ( `
204204 .bg-gradient-to-top-red {
205- background-image: linear-gradient(to top, transparent , #f00);
205+ background-image: linear-gradient(to top, rgba(255, 0, 0, 0) , #f00);
206206 }
207207 .bg-gradient-to-bottom-red {
208- background-image: linear-gradient(to bottom, transparent , #f00);
208+ background-image: linear-gradient(to bottom, rgba(255, 0, 0, 0) , #f00);
209209 }
210210 .bg-gradient-to-top-green {
211- background-image: linear-gradient(to top, transparent , #0f0);
211+ background-image: linear-gradient(to top, rgba(0, 255, 0, 0) , #0f0);
212212 }
213213 .bg-gradient-to-bottom-green {
214- background-image: linear-gradient(to bottom, transparent , #0f0);
214+ background-image: linear-gradient(to bottom, rgba(0, 255, 0, 0) , #0f0);
215215 }
216216 ` ) ;
217217 } ) ;
@@ -232,11 +232,11 @@ test('responsive utilities are generated by default', () => {
232232 } ) . then ( css => {
233233 expect ( css ) . toMatchCss ( `
234234 .bg-gradient-t-red {
235- background-image: linear-gradient(to top, transparent , #f00);
235+ background-image: linear-gradient(to top, rgba(255, 0, 0, 0) , #f00);
236236 }
237237 @media (min-width: 640px) {
238238 .sm\\:bg-gradient-t-red {
239- background-image: linear-gradient(to top, transparent , #f00);
239+ background-image: linear-gradient(to top, rgba(255, 0, 0, 0) , #f00);
240240 }
241241 }
242242 ` ) ;
@@ -261,13 +261,13 @@ test('variants can be customized', () => {
261261 } ) . then ( css => {
262262 expect ( css ) . toMatchCss ( `
263263 .bg-gradient-t-red {
264- background-image: linear-gradient(to top, transparent , #f00);
264+ background-image: linear-gradient(to top, rgba(255, 0, 0, 0) , #f00);
265265 }
266266 .hover\\:bg-gradient-t-red:hover {
267- background-image: linear-gradient(to top, transparent , #f00);
267+ background-image: linear-gradient(to top, rgba(255, 0, 0, 0) , #f00);
268268 }
269269 .active\\:bg-gradient-t-red:active {
270- background-image: linear-gradient(to top, transparent , #f00);
270+ background-image: linear-gradient(to top, rgba(255, 0, 0, 0) , #f00);
271271 }
272272 ` ) ;
273273 } ) ;
0 commit comments