Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/css/css-values/clamp-length-computed.txt
Andreas Kling 0553bcb35b LibWeb: Simplify standalone CSS math functions when used outside calc()
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.
2025-04-24 20:38:00 +02:00

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))'