Bug 1839104 [wpt PR 40614] - Implement the from-font value for font-size-adjust,...
commit23c755bfae24edcfca2d0f4e7e417dd5be621421
authorChangSeok Oh <changseok.oh@bytedance.com>
Thu, 22 Jun 2023 12:08:09 +0000 (22 12:08 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 28 Jun 2023 09:47:45 +0000 (28 09:47 +0000)
treec9e02d775acf778106e2d9a768015d146d6af6b2
parent28b90b3fa5826713b0e5abeb3b06e8d0751f707b
Bug 1839104 [wpt PR 40614] - Implement the from-font value for font-size-adjust, a=testonly

Automatic update from web-platform-tests
Implement the from-font value for font-size-adjust

The 'from-font' value is newly added to CSS Font Module Level 5 [1],
which allows the browser to automatically determine a font-size-adjust
value based on the primary font. This change implements it.

[1] https://www.w3.org/TR/css-fonts-5/#valdef-font-size-adjust-from-font

We tweak font-size-adjust-013.html to make Windows happy. The platform
got a one-pixel mismatch of width and height due to subpixel rendering.

Test:
external/wpt/css/css-fonts/font-size-adjust-013.html
external/wpt/css/css-fonts/parsing/font-size-adjust-computed.html
external/wpt/css/css-fonts/parsing/font-size-adjust-valid.html

Bug: 1219875
Change-Id: I79b401689c1afdbdb581112fe0778ca4a520a441
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4542920
Commit-Queue: ChangSeok Oh <changseok.oh@bytedance.com>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1160843}

--

wpt-commits: 47d67b1e488eb90b34bd2ba690d273be751cecb3
wpt-pr: 40614
testing/web-platform/tests/css/css-fonts/font-size-adjust-013-ref.html
testing/web-platform/tests/css/css-fonts/font-size-adjust-013.html