LibWeb/CSS: Remove an ad-hoc simplification step in calc() parsing

This commit is contained in:
Lucas CHOLLET 2025-02-27 15:25:21 -07:00 committed by Sam Atkins
commit 4bf197872b
Notes: github-actions[bot] 2025-03-05 12:06:57 +00:00
10 changed files with 84 additions and 92 deletions

View file

@ -2,8 +2,7 @@ Harness status: OK
Found 24 tests
21 Pass
3 Fail
24 Pass
Pass testing calc(1vh + 2px + 3%)
Pass testing calc(4px + 1vh)
Pass testing calc(5px + 6em + 1vh)
@ -19,12 +18,12 @@ Pass testing calc(4vmin + 0pt)
Pass testing calc(100% - 100% + 1em)
Pass testing calc(100% + 1em - 100%)
Pass testing calc(1vh - 7px)
Fail testing calc(5ex - 9ex)
Fail testing calc(-80px + 25.4mm)
Pass testing calc(5ex - 9ex)
Pass testing calc(-80px + 25.4mm)
Pass testing calc(2 * (10px + 1rem))
Pass testing calc(2 * (10px - 1rem))
Pass testing calc((10px + 1rem) / 2)
Pass testing calc(2 * (min(10px, 20%) + max(1rem, 2%)))
Pass testing calc((min(10px, 20%) + max(1rem, 2%)) * 2)
Pass testing calc(1vmin - 14%)
Fail testing calc(4 * 3px + 4pc / 8)
Pass testing calc(4 * 3px + 4pc / 8)

View file

@ -2,5 +2,5 @@ Harness status: OK
Found 1 tests
1 Fail
Fail calc() serialization
1 Pass
Pass calc() serialization