Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/css/css-values/exp-log-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

54 lines
3.4 KiB
Plaintext

Harness status: OK
Found 48 tests
46 Pass
2 Fail
Pass e.style['opacity'] = "exp()" should not set the property value
Pass e.style['opacity'] = "exp( )" should not set the property value
Pass e.style['opacity'] = "exp(,)" should not set the property value
Pass e.style['opacity'] = "exp(1, )" should not set the property value
Pass e.style['opacity'] = "exp(, 1)" should not set the property value
Pass e.style['opacity'] = "exp(1 + )" should not set the property value
Pass e.style['opacity'] = "exp(1 - )" should not set the property value
Pass e.style['opacity'] = "exp(1 * )" should not set the property value
Pass e.style['opacity'] = "exp(1 / )" should not set the property value
Pass e.style['opacity'] = "exp(1 2)" should not set the property value
Pass e.style['opacity'] = "exp(1, , 2)" should not set the property value
Pass e.style['opacity'] = "log()" should not set the property value
Pass e.style['opacity'] = "log( )" should not set the property value
Pass e.style['opacity'] = "log(,)" should not set the property value
Fail e.style['opacity'] = "log(1, )" should not set the property value
Pass e.style['opacity'] = "log(, 1)" should not set the property value
Pass e.style['opacity'] = "log(1 + )" should not set the property value
Pass e.style['opacity'] = "log(1 - )" should not set the property value
Pass e.style['opacity'] = "log(1 * )" should not set the property value
Pass e.style['opacity'] = "log(1 / )" should not set the property value
Pass e.style['opacity'] = "log(1 2)" should not set the property value
Pass e.style['opacity'] = "log(1, , 2)" should not set the property value
Pass e.style['opacity'] = "exp(0px)" should not set the property value
Pass e.style['opacity'] = "exp(0s)" should not set the property value
Pass e.style['opacity'] = "exp(0deg)" should not set the property value
Pass e.style['opacity'] = "exp(0Hz)" should not set the property value
Pass e.style['opacity'] = "exp(0dpi)" should not set the property value
Pass e.style['opacity'] = "exp(0fr)" should not set the property value
Pass e.style['opacity'] = "exp(1, 1%)" should not set the property value
Pass e.style['opacity'] = "exp(1, 0px)" should not set the property value
Pass e.style['opacity'] = "exp(1, 0s)" should not set the property value
Pass e.style['opacity'] = "exp(1, 0deg)" should not set the property value
Pass e.style['opacity'] = "exp(1, 0Hz)" should not set the property value
Pass e.style['opacity'] = "exp(1, 0dpi)" should not set the property value
Pass e.style['opacity'] = "exp(1, 0fr)" should not set the property value
Pass e.style['opacity'] = "log(0px)" should not set the property value
Pass e.style['opacity'] = "log(0s)" should not set the property value
Pass e.style['opacity'] = "log(0deg)" should not set the property value
Pass e.style['opacity'] = "log(0Hz)" should not set the property value
Pass e.style['opacity'] = "log(0dpi)" should not set the property value
Pass e.style['opacity'] = "log(0fr)" should not set the property value
Pass e.style['opacity'] = "log(1, 1%)" should not set the property value
Pass e.style['opacity'] = "log(1, 0px)" should not set the property value
Pass e.style['opacity'] = "log(1, 0s)" should not set the property value
Pass e.style['opacity'] = "log(1, 0deg)" should not set the property value
Pass e.style['opacity'] = "log(1, 0Hz)" should not set the property value
Pass e.style['opacity'] = "log(1, 0dpi)" should not set the property value
Fail e.style['opacity'] = "log(1, 0fr)" should not set the property value