mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb/CSS: Remove an ad-hoc simplification step in calc()
parsing
This commit is contained in:
parent
715bf0de2c
commit
4bf197872b
Notes:
github-actions[bot]
2025-03-05 12:06:57 +00:00
Author: https://github.com/LucasChollet
Commit: 4bf197872b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3726
Reviewed-by: https://github.com/AtkinsSJ ✅
10 changed files with 84 additions and 92 deletions
|
@ -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)
|
|
@ -2,5 +2,5 @@ Harness status: OK
|
|||
|
||||
Found 1 tests
|
||||
|
||||
1 Fail
|
||||
Fail calc() serialization
|
||||
1 Pass
|
||||
Pass calc() serialization
|
Loading…
Add table
Add a link
Reference in a new issue