LibWeb/CSS: Sort a calculation's children during serialization

This gets us 38 more passes in our in-tree tests, plus however many more
in the rest of WPT. :^)
This commit is contained in:
Sam Atkins 2025-02-27 12:55:34 +00:00 committed by Andreas Kling
commit 5cfb8163c6
Notes: github-actions[bot] 2025-02-27 20:43:39 +00:00
11 changed files with 139 additions and 74 deletions

View file

@ -2,29 +2,29 @@ Harness status: OK
Found 24 tests
8 Pass
16 Fail
Fail testing calc(1vh + 2px + 3%)
21 Pass
3 Fail
Pass testing calc(1vh + 2px + 3%)
Pass testing calc(4px + 1vh)
Fail testing calc(5px + 6em + 1vh)
Fail testing calc(-8px + 9em + 1vh)
Fail testing calc(1pc + 1in + 1vh + 10%)
Fail testing calc(25.4q + 1vh + 12%)
Fail testing calc(1em + 1.27cm + 13% + 3em)
Fail testing calc(15vw + 16vmin - 17vh)
Pass testing calc(5px + 6em + 1vh)
Pass testing calc(-8px + 9em + 1vh)
Pass testing calc(1pc + 1in + 1vh + 10%)
Pass testing calc(25.4q + 1vh + 12%)
Pass testing calc(1em + 1.27cm + 13% + 3em)
Pass testing calc(15vw + 16vmin - 17vh)
Pass testing calc(9pt + calc(9rem + 10px))
Fail testing calc(5pt + 5em + 4pt + 3em)
Fail testing calc(4vmin + 0pt + 3pc)
Fail testing calc(4vmin + 0pt)
Pass testing calc(5pt + 5em + 4pt + 3em)
Pass testing calc(4vmin + 0pt + 3pc)
Pass testing calc(4vmin + 0pt)
Pass testing calc(100% - 100% + 1em)
Pass testing calc(100% + 1em - 100%)
Fail testing calc(1vh - 7px)
Pass testing calc(1vh - 7px)
Fail testing calc(5ex - 9ex)
Fail 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%)))
Fail testing calc((min(10px, 20%) + max(1rem, 2%)) * 2)
Fail testing calc(1vmin - 14%)
Pass testing calc((min(10px, 20%) + max(1rem, 2%)) * 2)
Pass testing calc(1vmin - 14%)
Fail testing calc(4 * 3px + 4pc / 8)