| 1281 | // Stacked gradients. |
| 1282 | array( |
| 1283 | 'css' => 'background: radial-gradient(circle at 5px 5px,#0c0d0d70 2px,#ffffff00 0px,#ffffff00 0px) 0 0 / 8px 8px, linear-gradient(180deg, #345345 0%,#000000 200%)', |
| 1284 | 'expected' => 'background: radial-gradient(circle at 5px 5px,#0c0d0d70 2px,#ffffff00 0px,#ffffff00 0px) 0 0 / 8px 8px, linear-gradient(180deg, #345345 0%,#000000 200%)', |
| 1285 | ), |
| 1286 | // Stacked grandients with a CSS variable. |
| 1287 | array( |
| 1288 | 'css' => 'background: radial-gradient(circle at 5px 5px,#0c0d0d70 2px,#ffffff00 0px,#ffffff00 0px) 0 0 / 8px 8px, linear-gradient(180deg, var(--wp--preset--color--base) 0%,#000000 200%)', |
| 1289 | 'expected' => 'background: radial-gradient(circle at 5px 5px,#0c0d0d70 2px,#ffffff00 0px,#ffffff00 0px) 0 0 / 8px 8px, linear-gradient(180deg, var(--wp--preset--color--base) 0%,#000000 200%)', |
| 1290 | ), |
| 1291 | array( |
| 1292 | 'css' => '--wp--preset--gradient--dots: radial-gradient(circle at 5px 5px,#0c0d0d70 2px,#ffffff00 0px,#ffffff00 0px) 0 0 / 8px 8px, linear-gradient(180deg, var(--wp--preset--color--base) 0%,#000000 200%)', |
| 1293 | 'expected' => '--wp--preset--gradient--dots: radial-gradient(circle at 5px 5px,#0c0d0d70 2px,#ffffff00 0px,#ffffff00 0px) 0 0 / 8px 8px, linear-gradient(180deg, var(--wp--preset--color--base) 0%,#000000 200%)', |
| 1294 | ), |
| 1295 | // Malformed stacked gradients, no closing `)` |
| 1296 | array( |
| 1297 | 'css' => 'background: radial-gradient(circle at 5px 5px,#0c0d0d70 2px,#ffffff00 0px,#ffffff00 0px) 0 0 / 8px 8px, linear-gradient(180deg, #345345 0%,#000000 200%', |
| 1298 | 'expected' => '', |
| 1299 | ), |
| 1300 | // Malformed stacked gradients, mismatching brackets. |
| 1301 | array( |
| 1302 | 'css' => 'background: radial-gradient(circle at 5px 5px,#0c0d0d70 2px,#ffffff00 0px,#ffffff00 0px) 0 0 / 8px 8px, ( linear-gradient(180deg, #345345 0%,#000000 200%)', |
| 1303 | 'expected' => '', |
| 1304 | ), |