typed_arithmetic.html

FAILExpected37 of 38 subtests pass587 ms

Details

Test
/css/css-values/typed_arithmetic.html
Harness
OK

Subtests

StatusSubtestMessage
PASSmin(1em, 110px / 10px * 1px) should be used-value-equivalent to 10px
PASSmax(10px, 110px / 10px * 1px) should be used-value-equivalent to 11px
PASSmax(1em + 2px, 110px / 10px * 1px) should be used-value-equivalent to 12px
PASSmax(1em + 2%, 110px / 10px * 1px) should be used-value-equivalent to 12px
PASSclamp(110px / 10px * 1px, 1em + 200%, 200% * 1% / 1em) should be used-value-equivalent to 20px
PASScalc(3 + sign(10px / 1rem - sign(1em + 1px))) should be used-value-equivalent to 3
PASScalc(10em / 1em) should be used-value-equivalent to 10
PASScalc(10em / 1rem) should be used-value-equivalent to 10
PASScalc(10em / 1px) should be used-value-equivalent to 100
PASScalc(1px / 10em * NaN) should be used-value-equivalent to 0
PASScalc(10% / 1px) should be used-value-equivalent to 1
PASScalc(1% * 100% / 10%) should be used-value-equivalent to 10%
PASScalc(10% / 10%) should be used-value-equivalent to 1
PASScalc((10% * 1%) / 1px) should be used-value-equivalent to 10px
PASScalc(10% * 10% / 1px * 10deg / 1deg / 10px) should be used-value-equivalent to 1
PASScalc(10% * 10% / 1px * 1deg / 1deg) should be used-value-equivalent to 1px
PASScalc(1px * 2deg / 1deg) should be used-value-equivalent to 2px
PASScalc(1px * 3deg / 1deg / 1px) should be used-value-equivalent to 3
PASScalc(1px * pow(50% / 1px, 1)) should be used-value-equivalent to 50px
PASSe.style['width'] = "calc((1% * 1deg) / 1px)" should not set the property value
PASSe.style['width'] = "calc((1% * 1% * 1%) / 1px)" should not set the property value
PASSProperty width value 'calc(1px * 10em / 0em)'
PASSProperty width value 'calc(1px / 1px * 10em * infinity)'
PASSProperty margin-left value 'calc(1px * 10em / -0em)'
PASSProperty z-index value 'calc(10em / 0em)'
PASSsign(-0em / 1px) should be used-value-equivalent to 0
PASSclamp(-1, 1 / sign(-0em / 1px), 1) should be used-value-equivalent to -1
PASSsign( 0cqi / 1px) should be used-value-equivalent to 0
PASSclamp(-1, 1 / sign( 0cqi / 1px), 1) should be used-value-equivalent to 1
PASSsign(atan2(-0cap / 1px, 0em / 1px)) should be used-value-equivalent to 0
PASSclamp(-1, 1 / sign(atan2(-0cap / 1px, 0em / 1px)), 1) should be used-value-equivalent to -1
PASSsign(exp(-1vh / 0px)) should be used-value-equivalent to 0
PASSclamp(-1, 1 / sign(exp(-1vh / 0px)), 1) should be used-value-equivalent to 1
PASScalc(20cqw / 1rem) should be used-value-equivalent to 2
PASSProperty animation-duration value 'calc(2s / (10s - 10s) * 1s)'
PASSsubtraction of angle unit: deg minus turn
PASSe.style['width'] = "calc(1px * 1px * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2)" should not set the property value
FAILe.style['width'] = "calc(1px + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em + 1em)" should not set the property value
assert_equals: expected "" but got "calc(201em + 1px)"
assert_equals: expected "" but got "calc(201em + 1px)"