Commit 4033ff4
committed
feat(css): add normalize_spacing_only_value function for improved whitespace handling
Introduces a new helper function, `normalize_spacing_only_value`, to enhance the normalization of CSS property values by managing whitespace more effectively. This function replaces the previous inline logic, ensuring consistent handling of spaces, particularly around parentheses. Additionally, updates the test for relative RGB color to account for trailing whitespace, ensuring accurate normalization in various scenarios.1 parent c7020e9 commit 4033ff4
2 files changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
488 | 509 | | |
489 | 510 | | |
490 | 511 | | |
| |||
661 | 682 | | |
662 | 683 | | |
663 | 684 | | |
664 | | - | |
665 | | - | |
666 | | - | |
| 685 | + | |
667 | 686 | | |
668 | 687 | | |
669 | 688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
| 627 | + | |
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| |||
0 commit comments