From 9ae7f6c211f83b633de3e7a7fbd604ffb7bd85be Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Tue, 16 Feb 2021 03:22:15 +0000 Subject: [PATCH] Bug 1692500 [wpt PR 27609] - Also map width/height to aspect-ratio for , a=testonly Automatic update from web-platform-tests Also map width/height to aspect-ratio for See also https://crrev.com/c/2495560 and https://github.com/whatwg/html/pull/6032 Bug: 1137004 Change-Id: I17ff2c6f96b2cb9058858a0dc2439885f62ef414 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2690929 Auto-Submit: Christian Biesinger Commit-Queue: Mason Freed Reviewed-by: Mason Freed Cr-Commit-Position: refs/heads/master@{#853591} -- wpt-commits: 04bcfa1e0caff138eb7a86e4aae15f0888429b55 wpt-pr: 27609 --- .../attributes-for-embedded-content-and-images/img-aspect-ratio.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-aspect-ratio.html b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-aspect-ratio.html index 79a9becca69c..dd163fdf2947 100644 --- a/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-aspect-ratio.html +++ b/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-aspect-ratio.html @@ -26,6 +26,9 @@ function assert_ratio(img, expected, description) { function test_computed_style(width, height, expected) { test_computed_style_aspect_ratio("img", {width: width, height: height}, expected); + test_computed_style_aspect_ratio("input", {type: "image", width: width, height: height}, expected); + // input type=submit should not do this mapping. + test_computed_style_aspect_ratio("input", {type: "submit", width: width, height: height}, "auto"); } // Create and append a new image and immediately check the ratio. -- 2.11.4.GIT