Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b39809c719a4d765870925854055bafe37ba3dbf
https://github.com/WebKit/WebKit/commit/b39809c719a4d765870925854055bafe37ba3dbf
Author: Ahmad Saleem <[email protected]>
Date: 2026-06-01 (Mon, 01 Jun 2026)
Changed paths:
M LayoutTests/TestExpectations
M LayoutTests/platform/glib/TestExpectations
M Source/WebCore/platform/graphics/cocoa/UnrealizedCoreTextFont.cpp
Log Message:
-----------
font-style: oblique angle clamped against the @font-face weight range instead
of the font-style range
https://bugs.webkit.org/show_bug.cgi?id=315912
rdar://178324521
Reviewed by Vitor Roriz, Brandon Stewart, and Tim Nguyen.
In UnrealizedCoreTextFont::modifyFromContext() the oblique angle was clamped
against the @font-face weight capabilities instead of the slope capabilities,
a copy-paste error. Since the affected faces declare an oblique range but no
weight, the clamp was skipped and the angle was never constrained to the
declared font-style range.
Clamp m_slope against fontFaceCapabilities().slope, matching weight and width.
* LayoutTests/TestExpectations: Progressions
* LayoutTests/platform/glib/TestExpectations: Platform Specific Expectation
* Source/WebCore/platform/graphics/cocoa/UnrealizedCoreTextFont.cpp:
(WebCore::UnrealizedCoreTextFont::modifyFromContext):
Canonical link: https://commits.webkit.org/314280@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications