WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
187774
Use a single tri-state member to distinguish between "normal", "italic" and "oblique" font-style values
https://bugs.webkit.org/show_bug.cgi?id=187774
Summary
Use a single tri-state member to distinguish between "normal", "italic" and "...
Antoine Quint
Reported
2018-07-18 11:15:07 PDT
As part of
https://bugs.webkit.org/show_bug.cgi?id=187722
, we've made the FontDescriptionRequest slope member an optional to be able to distinguish between "normal" and any other value. However, we also need to look at the FontDescription fontStyleAxis member to distinguish between "italic" and "oblique 20deg". We should have a single tri-state member to distinguish between all these values.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-03-16 16:32:11 PDT
<
rdar://problem/172702768
>
Brent Fulgham
Comment 2
2026-03-16 16:37:04 PDT
This is more than just an architectural improvement: The lack of a tri-state representation led to incorrect font selection, where an attempt to select an oblique font would often improperly select an italic face, even when a normal face was available. CSS Fonts 4 explicitly states oblique should fall back to normal, and only use italic as a last result. We would often bypass normal and go to italic.
Brent Fulgham
Comment 3
2026-03-17 11:03:22 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/60787
EWS
Comment 4
2026-03-30 13:10:22 PDT
Committed
310249@main
(b927d5607bfe): <
https://commits.webkit.org/310249@main
> Reviewed commits have been landed. Closing PR #60787 and removing active labels.
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