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