Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1862394 [wpt PR 42890] - Make ic-width consistent regardless of t…
…ext orientation., a=testonly Automatic update from web-platform-tests Make ic-width consistent regardless of text orientation. We obtained the ic-width using the FontMetrics::IdeographicFullWidth() function. Unfortunately, this value is influenced by the text's orientation. When the orientation is vertically upright, IdeographicFullWidth() provides the vertical advance height of the CJK water glyph. However, when the orientation is different, it returns the horizontal width of the water glyph. As per the definition [1], the ic-width for font-size-adjust should be a consistent value, which is the horizontal advance width of the CJK water glyph divided by the font size. This consistency should be maintained regardless of the text's orientation. [1] https://www.w3.org/TR/css-fonts-5/#valdef-font-size-adjust-ic-width Test: external/wpt/css/css-fonts/font-size-adjust-text-orientation.html Bug: 1219875 Change-Id: I3cc9e6128854aa7b127ba3932f34b9cfec1970ca Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4995847 Commit-Queue: ChangSeok Oh <changseok.oh@bytedance.com> Reviewed-by: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/main@{#1234205} -- wpt-commits: d1bb35dae8f4a383b45e17558f4631a322cc8a54 wpt-pr: 42890
- Loading branch information