From 1e41eff877e0143651e1d5702b460002052dfaa2 Mon Sep 17 00:00:00 2001 From: Rune Lillesveen Date: Mon, 1 Nov 2021 08:00:54 -0700 Subject: [PATCH] Media Queries not using font data for ex and ch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MediaValues do not use FontMetrics for ex/ch units. Added a test that checks the ex/ch sizes matches for width property and mq-width, with an epsilon to catch rounding issues. Bug: 1264962 Change-Id: I28417e3b5c863e29bdb9b9865081a8a9e4694c3d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3251079 Reviewed-by: Dominik Röttsches Commit-Queue: Rune Lillesveen Cr-Commit-Position: refs/heads/main@{#936884} --- css/mediaqueries/relative-units-005.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 css/mediaqueries/relative-units-005.html diff --git a/css/mediaqueries/relative-units-005.html b/css/mediaqueries/relative-units-005.html new file mode 100644 index 00000000000000..91f85eca6d5dc5 --- /dev/null +++ b/css/mediaqueries/relative-units-005.html @@ -0,0 +1,22 @@ + +CSS Media Queries Test: ex and ch from initial font + + + +
+
+