Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-length-invalid.txt
Tim Ledbetter 78b6032940 LibWeb: Validate operator count when parsing a calculation
Previously, we would allow calc values such as `calc(min(1 2))`, which
would be simplified to `calc(3)` because we assumed that numbers not
separated by an operator represented a sum. We now validate that the
number of operators we see is as we would expect before collecting
these values into a sum node.
2025-07-02 10:12:58 +01:00

53 lines
3.9 KiB
Plaintext

Harness status: OK
Found 48 tests
48 Pass
Pass e.style['border-left-width'] = "min()" should not set the property value
Pass e.style['border-left-width'] = "min( )" should not set the property value
Pass e.style['border-left-width'] = "min(,)" should not set the property value
Pass e.style['border-left-width'] = "min(1py)" should not set the property value
Pass e.style['border-left-width'] = "min(1px, )" should not set the property value
Pass e.style['border-left-width'] = "min(, 1px)" should not set the property value
Pass e.style['border-left-width'] = "min(1px + )" should not set the property value
Pass e.style['border-left-width'] = "min(1px - )" should not set the property value
Pass e.style['border-left-width'] = "min(1px * )" should not set the property value
Pass e.style['border-left-width'] = "min(1px / )" should not set the property value
Pass e.style['border-left-width'] = "min(1px 2px)" should not set the property value
Pass e.style['border-left-width'] = "min(1px, , 2px)" should not set the property value
Pass e.style['border-left-width'] = "max()" should not set the property value
Pass e.style['border-left-width'] = "max( )" should not set the property value
Pass e.style['border-left-width'] = "max(,)" should not set the property value
Pass e.style['border-left-width'] = "max(1py)" should not set the property value
Pass e.style['border-left-width'] = "max(1px, )" should not set the property value
Pass e.style['border-left-width'] = "max(, 1px)" should not set the property value
Pass e.style['border-left-width'] = "max(1px + )" should not set the property value
Pass e.style['border-left-width'] = "max(1px - )" should not set the property value
Pass e.style['border-left-width'] = "max(1px * )" should not set the property value
Pass e.style['border-left-width'] = "max(1px / )" should not set the property value
Pass e.style['border-left-width'] = "max(1px 2px)" should not set the property value
Pass e.style['border-left-width'] = "max(1px, , 2px)" should not set the property value
Pass e.style['border-left-width'] = "min(0)" should not set the property value
Pass e.style['border-left-width'] = "min(0%)" should not set the property value
Pass e.style['border-left-width'] = "min(0s)" should not set the property value
Pass e.style['border-left-width'] = "min(0Hz)" should not set the property value
Pass e.style['border-left-width'] = "min(0dpi)" should not set the property value
Pass e.style['border-left-width'] = "min(0fr)" should not set the property value
Pass e.style['border-left-width'] = "min(1px, 0)" should not set the property value
Pass e.style['border-left-width'] = "min(1px, 0%)" should not set the property value
Pass e.style['border-left-width'] = "min(1px, 0s)" should not set the property value
Pass e.style['border-left-width'] = "min(1px, 0Hz)" should not set the property value
Pass e.style['border-left-width'] = "min(1px, 0dpi)" should not set the property value
Pass e.style['border-left-width'] = "min(1px, 0fr)" should not set the property value
Pass e.style['border-left-width'] = "max(0)" should not set the property value
Pass e.style['border-left-width'] = "max(0%)" should not set the property value
Pass e.style['border-left-width'] = "max(0s)" should not set the property value
Pass e.style['border-left-width'] = "max(0Hz)" should not set the property value
Pass e.style['border-left-width'] = "max(0dpi)" should not set the property value
Pass e.style['border-left-width'] = "max(0fr)" should not set the property value
Pass e.style['border-left-width'] = "max(1px, 0)" should not set the property value
Pass e.style['border-left-width'] = "max(1px, 0%)" should not set the property value
Pass e.style['border-left-width'] = "max(1px, 0s)" should not set the property value
Pass e.style['border-left-width'] = "max(1px, 0Hz)" should not set the property value
Pass e.style['border-left-width'] = "max(1px, 0dpi)" should not set the property value
Pass e.style['border-left-width'] = "max(1px, 0fr)" should not set the property value