cssOKLab.html

PASSExpected15 of 15 subtests pass948 ms

Details

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

Subtests

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