ladybird/Tests/LibWeb/Text/expected/wpt-import/css/css-values/signs-abs-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

58 lines
No EOL
4 KiB
Text

Harness status: OK
Found 52 tests
51 Pass
1 Fail
Pass e.style['font-weight'] = "abs()" should not set the property value
Pass e.style['font-weight'] = "abs( )" should not set the property value
Pass e.style['font-weight'] = "abs(,)" should not set the property value
Pass e.style['font-weight'] = "abs(1, )" should not set the property value
Pass e.style['font-weight'] = "abs(, 1)" should not set the property value
Pass e.style['font-weight'] = "abs(1 + )" should not set the property value
Pass e.style['font-weight'] = "abs(1 - )" should not set the property value
Pass e.style['font-weight'] = "abs(1 * )" should not set the property value
Pass e.style['font-weight'] = "abs(1 / )" should not set the property value
Pass e.style['font-weight'] = "abs(1 2)" should not set the property value
Pass e.style['font-weight'] = "abs(1, , 2)" should not set the property value
Pass e.style['font-weight'] = "abs(1, 2)" should not set the property value
Pass e.style['font-weight'] = "abs(1, 1%)" should not set the property value
Pass e.style['font-weight'] = "abs(1, 0px)" should not set the property value
Pass e.style['font-weight'] = "abs(1, 0s)" should not set the property value
Pass e.style['font-weight'] = "abs(1, 0deg)" should not set the property value
Pass e.style['font-weight'] = "abs(1, 0Hz)" should not set the property value
Pass e.style['font-weight'] = "abs(1, 0dpi)" should not set the property value
Pass e.style['font-weight'] = "abs(1, 0fr)" should not set the property value
Pass e.style['font-weight'] = "sign()" should not set the property value
Pass e.style['font-weight'] = "sign( )" should not set the property value
Pass e.style['font-weight'] = "sign(,)" should not set the property value
Pass e.style['font-weight'] = "sign(1, )" should not set the property value
Pass e.style['font-weight'] = "sign(, 1)" should not set the property value
Pass e.style['font-weight'] = "sign(1 + )" should not set the property value
Pass e.style['font-weight'] = "sign(1 - )" should not set the property value
Pass e.style['font-weight'] = "sign(1 * )" should not set the property value
Pass e.style['font-weight'] = "sign(1 / )" should not set the property value
Pass e.style['font-weight'] = "sign(1 2)" should not set the property value
Pass e.style['font-weight'] = "sign(1, , 2)" should not set the property value
Pass e.style['font-weight'] = "sign(1, 2)" should not set the property value
Pass e.style['font-weight'] = "sign(1, 1%)" should not set the property value
Pass e.style['font-weight'] = "sign(1, 0px)" should not set the property value
Pass e.style['font-weight'] = "sign(1, 0s)" should not set the property value
Pass e.style['font-weight'] = "sign(1, 0deg)" should not set the property value
Pass e.style['font-weight'] = "sign(1, 0Hz)" should not set the property value
Pass e.style['font-weight'] = "sign(1, 0dpi)" should not set the property value
Pass e.style['font-weight'] = "sign(1, 0fr)" should not set the property value
Pass e.style['font-weight'] = "abs(0px)" should not set the property value
Pass e.style['font-weight'] = "abs(0s)" should not set the property value
Pass e.style['font-weight'] = "abs(0deg)" should not set the property value
Pass e.style['font-weight'] = "abs(0Hz)" should not set the property value
Pass e.style['font-weight'] = "abs(0dpi)" should not set the property value
Pass e.style['font-weight'] = "abs(0fr)" should not set the property value
Pass e.style['font-weight'] = "abs(1%)" should not set the property value
Pass e.style['font-weight'] = "sign(10px + 5rad)" should not set the property value
Fail e.style['font-weight'] = "sign(10%)" should not set the property value
Pass e.style['tab-size'] = "abs(10%)" should not set the property value
Pass e.style['tab-size'] = "1px * sign(10%)" should not set the property value
Pass e.style['tab-size'] = "1px * sign(1em + 10%)" should not set the property value
Pass e.style['margin-left'] = "1px * sign(10px + 5rad)" should not set the property value
Pass e.style['tab-size'] = "1px * sign(10px + 5rad)" should not set the property value