cssLCH.html

PASSExpected18 of 18 subtests pass761 ms

Details

Test
/css/css-typed-om/stylevalue-subclasses/cssLCH.html
Harness
OK

Subtests

StatusSubtestMessage
PASSConstructing a CSSLCH with percent for the lightness works as intended.
PASSCSSLCH.l can be updated with a percent.
PASSConstructing a CSSLCH with number for the lightness works as intended.
PASSCSSLCH.l can be updated with a number.
PASSConstructing a CSSLCH with css pixels for lightness throws a SyntaxError.
PASSConstructing a CSSLCH with degrees for lightness throws a SyntaxError.
PASSCSSLCH can be constructed from three numbers and will get an alpha of 100%.
PASSCSSLCH can be constructed from four numbers.
PASSConstructing a CSSLCH with CSS.number for l, c, h or alpha throws a SyntaxError
PASSUpdating a CSSLCH with CSS.number for l throws a SyntaxError
PASSCSSLCH.l can be updated to a number.
PASSCSSLCH.l can be updated with a CSS percent.
PASSUpdating a CSSLCH with CSS.number for c throws a SyntaxError
PASSCSSLCH.c can be updated to a number.
PASSCSSLCH.c can be updated with a CSS percent.
PASSUpdating a CSSLCH with CSS.number for alpha throws a SyntaxError
PASSCSSLCH.alpha can be updated to a number.
PASSCSSLCH.alpha can be updated with a CSS percent.