toSum.tentative.html

PASSExpected11 of 11 subtests pass663 ms

Details

Test
/css/css-typed-om/stylevalue-subclasses/numeric-objects/toSum.tentative.html
Harness
OK

Subtests

StatusSubtestMessage
PASSConverting a CSSNumericValue to a sum with invalid units throws SyntaxError
PASSConverting a CSSNumericValue with an invalid sum value to a sum throws TypeError
PASSConverting a CSSNumericValue with compound units to a sum throws TypeError
PASSConverting a CSSNumericValue to a sum with an incompatible unit throws TypeError
PASSConverting a CSSNumericValue to a sum with units that are not addable throws TypeError
PASSConverting a CSSNumericValue with leftover units to a sum throws TypeError
PASSConverting CSSNumericValue to a sum with its own unit returns itself
PASSConverting CSSNumericValue to a sum with no arguments returns all the units in sorted order
PASSConverting CSSNumericValue to a sum with a relative unit converts correctly
PASSConverting CSSNumericValue to a sum containing extra units returns zero for those units
PASSCSSNumericValue.toSum converts greedily