wpt / css / css-forced-color-adjust / parsing / forced-color-adjust-valid.html

Status: FAIL | Duration: 52ms | Subtests: 2/3 | Open test on wpt.live | wpt.fyi

Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)

SubtestStatusMessage
e.style['forced-color-adjust'] = "none" should set the property valuePASS
e.style['forced-color-adjust'] = "auto" should set the property valuePASS
e.style['forced-color-adjust'] = "preserve-parent-color" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""

/css/css-forced-color-adjust/parsing/forced-color-adjust-valid.html

<!DOCTYPE html>
<title>CSS Forced Color Adjust: parsing forced-color-adjust with valid values</title>
<link rel="help" href="https://www.w3.org/TR/css-color-adjust-1/#forced-color-adjust-prop">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
  test_valid_value("forced-color-adjust", "none");
  test_valid_value("forced-color-adjust", "auto");
  test_valid_value("forced-color-adjust", "preserve-parent-color");
</script>