Bug 1792957 [wpt PR 36160] - Add test for lh unit affected by loading web font, a...
commitfe693cbbae55e3d023df6ad0d35335121a5c3ea9
authorRune Lillesveen <futhark@chromium.org>
Tue, 11 Oct 2022 11:52:29 +0000 (11 11:52 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 12 Oct 2022 11:09:10 +0000 (12 11:09 +0000)
treee997a378a69845e861f597bc21f87ca0df4d3e4b
parentbee5753094d02de30bf859955080c9f5b22d413c
Bug 1792957 [wpt PR 36160] - Add test for lh unit affected by loading web font, a=testonly

Automatic update from web-platform-tests
Add test for lh unit affected by loading web font

When the line-height is normal, lh units depends on font metrics. Font
metrics change when web fonts are loaded, but only mark elements for
style recalc if the ComputedStyle is marked as being glyph-dependent.

Bug: 937104
Change-Id: I05bddcb98f68771b86d4013a97b5223e66c257ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3928979
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1053338}

--

wpt-commits: fc8da1e365af75d731337f6325a41872bf965cd1
wpt-pr: 36160
testing/web-platform/tests/css/css-values/lh-unit-003.html [new file with mode: 0644]