Commit 1077b8e
committed
Fix var() fallback color minification context in unparsed values
Preserve parsing context when reading var() fallbacks inside unparsed property token lists, so color-ident minification respects function-level whitelisting instead of being reapplied as top-level parsing.
e.g.
Added/updated regression tests in test_custom_properties covering:
non-whitelisted function: foo(var(--c, blue)) should keep blue,1 parent 13d9d4b commit 1077b8e
2 files changed
+20
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23389 | 23389 | | |
23390 | 23390 | | |
23391 | 23391 | | |
| 23392 | + | |
| 23393 | + | |
| 23394 | + | |
| 23395 | + | |
| 23396 | + | |
| 23397 | + | |
| 23398 | + | |
| 23399 | + | |
| 23400 | + | |
| 23401 | + | |
| 23402 | + | |
| 23403 | + | |
| 23404 | + | |
| 23405 | + | |
| 23406 | + | |
| 23407 | + | |
| 23408 | + | |
23392 | 23409 | | |
23393 | 23410 | | |
23394 | 23411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
| 449 | + | |
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| |||
1351 | 1351 | | |
1352 | 1352 | | |
1353 | 1353 | | |
1354 | | - | |
| 1354 | + | |
1355 | 1355 | | |
1356 | 1356 | | |
1357 | 1357 | | |
1358 | 1358 | | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
| 1359 | + | |
1365 | 1360 | | |
1366 | 1361 | | |
1367 | 1362 | | |
| |||
0 commit comments