From cb3caf21eeed0b7de961be41334437635d2d2dc3 Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Thu, 11 Feb 2021 08:07:34 -0800 Subject: [PATCH] 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 --- .../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 html/rendering/replaced-elements/attributes-for-embedded-content-and-images/resources/aspect-ratio.js diff --git a/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/canvas-aspect-ratio.html b/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/canvas-aspect-ratio.html index 91fdc6c86c5559..816d84e4447816 100644 --- a/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/canvas-aspect-ratio.html +++ b/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 +