Skip to content
Skip the list of specifications

css/css-transforms/parsing/

translate-parsing-valid.html

Passes: all 20 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.

AssertionExpectedGotVerdict
e.style['translate'] = "none" should set the property valueacceptedacceptedPasses
e.style['translate'] = "0px" should set the property valueacceptedacceptedPasses
e.style['translate'] = "100%" should set the property valueacceptedacceptedPasses
e.style['translate'] = "100px 0px" should set the property valueacceptedacceptedPasses
e.style['translate'] = "100px 0.1px" should set the property valueacceptedacceptedPasses
e.style['translate'] = "100px 0%" should set the property valueacceptedacceptedPasses
e.style['translate'] = "100px calc(10px - 10%)" should set the property valueacceptedacceptedPasses
e.style['translate'] = "100px 200%" should set the property valueacceptedacceptedPasses
e.style['translate'] = "100% 200px" should set the property valueacceptedacceptedPasses
e.style['translate'] = "100px 200px 0px" should set the property valueacceptedacceptedPasses
e.style['translate'] = "100px 0px 300px" should set the property valueacceptedacceptedPasses
e.style['translate'] = "100px 0px 0px" should set the property valueacceptedacceptedPasses
e.style['translate'] = "100px 200px 300px" should set the property valueacceptedacceptedPasses
e.style['translate'] = "100% 200% 300px" should set the property valueacceptedacceptedPasses
e.style['translate'] = "100% 0% 200px" should set the property valueacceptedacceptedPasses
e.style['translate'] = "0% 0% 100px" should set the property valueacceptedacceptedPasses
e.style['translate'] = "0em 0em 100px" should set the property valueacceptedacceptedPasses
e.style['translate'] = "calc(10% + 10px) calc(20% + 20px) calc(30em + 30px)" should set the property valueacceptedacceptedPasses
e.style['translate'] = "0" should set the property valueacceptedacceptedPasses
e.style['translate'] = "1px 2px 0" should set the property valueacceptedacceptedPasses

Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.