WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
281863
"font-variant-numeric: slashed-zero" causes "font-size: 0px" to be more than zero size
https://bugs.webkit.org/show_bug.cgi?id=281863
Summary
"font-variant-numeric: slashed-zero" causes "font-size: 0px" to be more than ...
Kevin Gibbons
Reported
2024-10-21 10:59:55 PDT
Created
attachment 473008
[details]
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.
Attachments
reproducer with embedded font
(20.84 KB, text/html)
2024-10-21 10:59 PDT
,
Kevin Gibbons
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2024-10-28 11:00:15 PDT
<
rdar://problem/138777890
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug