mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Math functions like abs(), clamp(), round(), etc, can be used by themselves in property values, without wrapping them in calc(). Before this change, we were neglecting to run calc simplification on the generated calculation node trees. By doing that manually after parsing a standalone math function, we score at least a couple hundred WPT points.
22 lines
1.1 KiB
Plaintext
22 lines
1.1 KiB
Plaintext
Harness status: OK
|
|
|
|
Found 17 tests
|
|
|
|
17 Pass
|
|
Pass Property letter-spacing value 'clamp(10px, 20px, 30px)'
|
|
Pass Property letter-spacing value 'clamp(10px, 5px, 30px)'
|
|
Pass Property letter-spacing value 'clamp(10px, 35px, 30px)'
|
|
Pass Property letter-spacing value 'clamp(10px, 35px , 30px)'
|
|
Pass Property letter-spacing value 'clamp(10px, 35px /*foo*/, 30px)'
|
|
Pass Property letter-spacing value 'clamp(10px /* foo */ , 35px, 30px)'
|
|
Pass Property letter-spacing value 'clamp(10px , 35px, 30px)'
|
|
Pass Property letter-spacing value 'clamp(30px, 100px, 20px)'
|
|
Pass Property letter-spacing value 'clamp(-30px, -20px, -10px)'
|
|
Pass Property letter-spacing value 'clamp(-30px, -100px, -10px)'
|
|
Pass Property letter-spacing value 'clamp(-30px, 100px, -10px)'
|
|
Pass Property letter-spacing value 'clamp(-10px, 100px, -30px)'
|
|
Pass Property letter-spacing value 'clamp(-10px, -100px, -30px)'
|
|
Pass Property letter-spacing value 'calc(0px + clamp(10px, 20px, 30px))'
|
|
Pass Property letter-spacing value 'calc(0px - clamp(10px, 20px, 30px))'
|
|
Pass Property letter-spacing value 'calc(0px + clamp(30px, 100px, 20px))'
|
|
Pass Property letter-spacing value 'calc(0px - clamp(30px, 100px, 20px))' |