From f7b2a8684eeb5dcf9e87b7a58eeb29cf4adb8f55 Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Fri, 12 Feb 2021 16:26:34 +0000 Subject: [PATCH] Bug 1692252 [wpt PR 27527] - Add tests for mapping of width/height to aspect-ratio, a=testonly Automatic update from web-platform-tests Add tests for mapping of width/height to aspect-ratio This covers video, img and canvas. This is for https://github.com/whatwg/html/pull/6032. See also https://github.com/web-platform-tests/wpt/pull/26010. R=masonfreed@chromium.org, yoavweiss@chromium.org Bug: 1137004 Change-Id: I38d690412af67836e4fdede11c5b4938e47f138f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2679289 Commit-Queue: Christian Biesinger Auto-Submit: Christian Biesinger Reviewed-by: Mason Freed Cr-Commit-Position: refs/heads/master@{#853156} -- wpt-commits: 87acfece9dfcb016236468d1710c626e92128a57 wpt-pr: 27527 --- .../canvas-aspect-ratio.html | 22 +++++++++++++++++++++ .../img-aspect-ratio.html | 23 ++++++++++++++++++++++ .../resources/aspect-ratio.js | 10 ++++++++++ .../video-aspect-ratio.html | 22 +++++++++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/resources/aspect-ratio.js diff --git a/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/canvas-aspect-ratio.html b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/canvas-aspect-ratio.html index 91fdc6c86c55..816d84e44478 100644 --- a/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/canvas-aspect-ratio.html +++ b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/canvas-aspect-ratio.html @@ -2,6 +2,7 @@ Canvas width and height attributes are used as the surface size +