[Webkit-unassigned] [Bug 281863] New: "font-variant-numeric: slashed-zero" causes "font-size: 0px" to be more than zero size
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 21 10:59:55 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=281863
Bug ID: 281863
Summary: "font-variant-numeric: slashed-zero" causes
"font-size: 0px" to be more than zero size
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
Assignee: webkit-unassigned at lists.webkit.org
Reporter: bakkot at gmail.com
CC: bfulgham at webkit.org, simon.fraser at apple.com,
zalan at apple.com
Created attachment 473008
--> https://bugs.webkit.org/attachment.cgi?id=473008&action=review
reproducer with embedded font
The attached file demonstrates the problem: when using a font that supports a variant slashed-zero, and you put "font-variant-numeric: slashed-zero" on an element which has "font-size: 0px", and that element contains a "0", that element takes up whitespace. It only happens for 0. Doesn't happen in Chrome or Firefox.
I've tested this with another font which has a slashed-zero variant, specifically Mozilla's Fira from https://github.com/mozilla/Fira/blob/master/woff2/FiraSans-Regular.woff2, and confirmed that it happens with that font as well, so it's not just this specific font.
--
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/20241021/d0d2e903/attachment-0001.htm>
More information about the webkit-unassigned
mailing list