Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the ic-height metric of font-size-adjust
This change introduces support for the ic-height metric in font-size-adjust [1], allowing developers to adjust font size based on the height of the CJK water glyph. Notably, in cases where the chosen font lacks the CJK water glyph or vertical font information, there is no specified fallback behavior in the current specification. We adopt the approach of combining ascent and descent for fallback, similar to Gecko's method [2], until a standard fallback behavior is defined [3]. [1] https://www.w3.org/TR/css-fonts-5/#valdef-font-size-adjust-ic-height [2] w3c/csswg-drafts#8792 (comment) [3] w3c/csswg-drafts#6384 Test: animations/responsive/interpolation/font-size-adjust-responsive.html external/wpt/css/css-fonts/animations/font-size-adjust-composition.html external/wpt/css/css-fonts/font-size-adjust-ic-height.html (new) 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: Ie90a6241cb7e8a55fcaf65df5a4edc1058028ebe
- Loading branch information