css/css-color/parsing/
color-invalid-contrast-color-function.html
Passes: all 9 assertions match
A parsing check: each value the parser must accept or reject.
Run it in the playgroundThe fileOn GitHubBrowsers’ results on wpt.fyi
Each assertion
Every row shows what the file expected and what the engine returned, whether they match or not.
| Assertion | Expected | Got | Verdict |
|---|---|---|---|
e.style['background-color'] = "contrast-color()" should not set the property value | rejected | rejected | Passes |
e.style['background-color'] = "contrast-color(1)" should not set the property value | rejected | rejected | Passes |
e.style['background-color'] = "contrast-color(max)" should not set the property value | rejected | rejected | Passes |
e.style['background-color'] = "contrast-color(max max)" should not set the property value | rejected | rejected | Passes |
e.style['background-color'] = "contrast-color(max white)" should not set the property value | rejected | rejected | Passes |
e.style['background-color'] = "contrast-color(white white)" should not set the property value | rejected | rejected | Passes |
e.style['background-color'] = "contrast-color(white max)" should not set the property value | rejected | rejected | Passes |
e.style['background-color'] = "contrast-color(white min)" should not set the property value | rejected | rejected | Passes |
e.style['background-color'] = "contrast-color(white max bar)" should not set the property value | rejected | rejected | Passes |
Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.