Bug 1834903 [wpt PR 40210] - Apply font-size-adjust to fallback fonts, a=testonly
commitbb80ed1db11f635703d2762baf7f948c6daea3b4
authorChangSeok Oh <changseok.oh@bytedance.com>
Mon, 19 Jun 2023 20:25:57 +0000 (19 20:25 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 21 Jun 2023 14:35:41 +0000 (21 14:35 +0000)
tree5a1927feb570828a6cf47bce5ce9018f11080ecb
parent2a6b9a1391a6b487c5ab93b67d920b7798e5c684
Bug 1834903 [wpt PR 40210] - Apply font-size-adjust to fallback fonts, a=testonly

Automatic update from web-platform-tests
Apply font-size-adjust to fallback fonts

Fallback fonts ignore font-size-adjust. That is because the primary
font's description is used to create fallback fonts. As a fallback font
can have different font metrics, we should adjust its size.

The subpixel rendering might affect the result on Windows. To make it
happy, we tweak the font size in font-size-adjust-012.html. With this
change, Windows gets a regression on font-size-adjust-010.html due to
unknown reasons. We will handle it in a separate ticket [1].

[1] https://bugs.chromium.org/p/chromium/issues/detail?id=1454612

Test: external/wpt/css/css-fonts/font-size-adjust-012.html
      external/wpt/css/css-fonts/font-size-adjust-metrics-override.html

Bug: 451346
Change-Id: Iab8f14c21fdf501931e62e77e9059737722a050f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4305200
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Commit-Queue: ChangSeok Oh <changseok.oh@bytedance.com>
Cr-Commit-Position: refs/heads/main@{#1159352}

--

wpt-commits: 921aaae3e84c182fe2d09ef176a3f03702928a8c
wpt-pr: 40210
testing/web-platform/tests/css/css-fonts/font-size-adjust-012-ref.html
testing/web-platform/tests/css/css-fonts/font-size-adjust-012.html
testing/web-platform/tests/css/css-fonts/font-size-adjust-metrics-override-ref.html [new file with mode: 0644]
testing/web-platform/tests/css/css-fonts/font-size-adjust-metrics-override.html [new file with mode: 0644]
testing/web-platform/tests/lint.ignore