Bug 242466
Summary: | [css-values] Implement CSS cap unit | ||
---|---|---|---|
Product: | WebKit | Reporter: | Tim Nguyen (:ntim) <ntim> |
Component: | CSS | Assignee: | Tim Nguyen (:ntim) <ntim> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | kizmarh, sebastianzartner, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=260648 |
Tim Nguyen (:ntim)
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/97025854>
Sebastian Zartner
Looks like bug 245033 is a duplicate of this one. Though, given, that that bug has a bit more activity and also covers the rcap unit, maybe this bug should be marked as a duplicate.
Sebastian
Tim Nguyen (:ntim)
*** Bug 245033 has been marked as a duplicate of this bug. ***
Tim Nguyen (:ntim)
I might implement rcap as part of bug 260648 depending on landing order.
Tim Nguyen (:ntim)
Pull request: https://github.com/WebKit/WebKit/pull/17082
EWS
Committed 267315@main (ce1ebf3906ee): <https://commits.webkit.org/267315@main>
Reviewed commits have been landed. Closing PR #17082 and removing active labels.