/css/css-color/parsing/color-computed-contrast-color-function.html| status | subtest | message |
|---|---|---|
| FAIL | Property background-color value 'contrast-color(white)' | assert_in_array: value "contrast-color(rgb(255, 255, 255))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'contrast-color(black)' | assert_in_array: value "contrast-color(rgb(0, 0, 0))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'contrast-color(pink)' | assert_in_array: value "contrast-color(rgb(255, 192, 203))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'contrast-color(color(srgb 1 0 1 / 0.5))' | assert_in_array: value "contrast-color(color(srgb 1 0 1 / 0.5))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'contrast-color(lab(0.2 0.5 0.2))' | assert_in_array: value "contrast-color(lab(0.2 0.5 0.2))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'contrast-color(color(srgb 10 10 10))' | assert_in_array: value "contrast-color(color(srgb 10 10 10))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'contrast-color(color(srgb -10 -10 -10))' | assert_in_array: value "contrast-color(color(srgb -10 -10 -10))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'contrast-color(contrast-color(pink))' | assert_in_array: value "contrast-color(contrast-color(rgb(255, 192, 203)))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'contrast-color(currentcolor)' | assert_in_array: value "contrast-color(currentcolor)" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'contrast-color(color(srgb calc(1 + 1 / 1) calc(1 + 1 / 1) calc(1 + 1 / 1)))' | assert_in_array: value "contrast-color(color(srgb 2 2 2))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'color-mix(in srgb, contrast-color(blue) 100%, purple)' | assert_in_array: value "color-mix(in srgb, contrast-color(rgb(0, 0, 255)) 100%, rgb(128, 0, 128))" not in array ["color(srgb 0 0 0)", "color(srgb 1 1 1)"] |
| FAIL | Property background-color value 'rgb(from contrast-color(blue) r g b)' | assert_in_array: value "rgb(from contrast-color(rgb(0, 0, 255)) r g b)" not in array ["color(srgb 0 0 0)", "color(srgb 1 1 1)"] |
| FAIL | Property background-color value 'contrast-color(color-mix(blue, green))' | assert_in_array: value "contrast-color(oklab(0.485883 -0.0863796 -0.101926))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'contrast-color(rgb(from orange r g b))' | assert_in_array: value "contrast-color(color(srgb 1 0.647059 0))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'contrast-color(buttonface)' | assert_in_array: value "contrast-color(rgb(220, 220, 220))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'contrast-color(transparent)' | assert_in_array: value "contrast-color(rgba(0, 0, 0, 0))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
| FAIL | Property background-color value 'contrast-color(rgba(255, 255, 255, 0.2))' | assert_in_array: value "contrast-color(rgba(255, 255, 255, 0.2))" not in array ["rgb(0, 0, 0)", "rgb(255, 255, 255)"] |
bundle built 2026-07-16T07:16:48.063Z