css/css-images/parsing/
object-fit-valid.html
Fails: 5 of 9 assertions match, 4 do not
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['object-fit'] = "contain scale-down" should set the property value | accepted | rejected | Fails |
e.style['object-fit'] = "cover scale-down" should set the property value | accepted | rejected | Fails |
e.style['object-fit'] = "scale-down contain" should set the property value | accepted | rejected | Fails |
e.style['object-fit'] = "scale-down cover" should set the property value | accepted | rejected | Fails |
e.style['object-fit'] = "contain" should set the property value | accepted | accepted | Passes |
e.style['object-fit'] = "cover" should set the property value | accepted | accepted | Passes |
e.style['object-fit'] = "fill" should set the property value | accepted | accepted | Passes |
e.style['object-fit'] = "none" should set the property value | accepted | accepted | Passes |
e.style['object-fit'] = "scale-down" should set the property value | accepted | accepted | Passes |
Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.