Bug
1727047 [wpt PR 30121] - Fix aspect-ratio mapping for <canvas>, a=testonly
Automatic update from web-platform-tests
Fix aspect-ratio mapping for <canvas>
'width' and 'height' on a <canvas> element should be mapped to
'aspect-ratio' per the 'map to the aspect-ratio property' rule - which
uses the rules for parsing non-negative integers rather than those for
dimensions values (as implemented by ApplyAspectRatioToStyle() on
HTMLElement).
Split out the CSSValue creation and actual style application from
ApplyAspectRatioToStyle() and then add ApplyIntegerAspectRatioToStyle()
that follows the rule mentioned above.
Bug: 989839,
1209223
Change-Id: I996208c1f5d5fd29a90ef6ed0af716ed8027b7c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
3109968
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#914260}
--
wpt-commits:
caebb4680217da6689803d142afbd2224ec3bae3
wpt-pr: 30121