[Webkit-unassigned] [Bug 242466] New: Implement CSS cap unit
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 7 11:36:07 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=242466
Bug ID: 242466
Summary: Implement CSS cap unit
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ntim at apple.com
https://drafts.csswg.org/css-values/#cap
> Equal to the used cap-height of the first available font [CSS3-FONTS]. The cap-height is so called because it is approximately equal to the height of a capital Latin letter. However, a cap is defined even for fonts that do not contain Latin letters. The cap-height of a font can be found in different ways. Some fonts contain reliable metrics for the cap-height. If reliable font metrics are not available, UAs may determine the cap-height from the height of an uppercase glyph. One possible heuristic is to look at how far the glyph for the uppercase “O” extends below the baseline, and subtract that value from the top of its bounding box. In the cases where it is impossible or impractical to determine the cap-height, the font’s ascent must be used.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220707/8a473d2a/attachment-0001.htm>
More information about the webkit-unassigned
mailing list