An expression like "calc(1x * 2)" does not recognize the 1x as a resolution unit when resolving the calc unit category. It defaults to CalculationCategory::Other which causes the parser to fail parsing the expression in the calc function if it's expecting a Dimension result.
<rdar://problem/105700660>
Pull request: https://github.com/WebKit/WebKit/pull/10412
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/38624
Committed 260678@main (310f6772fe38): <https://commits.webkit.org/260678@main> Reviewed commits have been landed. Closing PR #10412 and removing active labels.