Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1ecb160d72f75c57927794c9b5967f71b75f034c
      
https://github.com/WebKit/WebKit/commit/1ecb160d72f75c57927794c9b5967f71b75f034c
  Author: Vitor Roriz <[email protected]>
  Date:   2025-12-19 (Fri, 19 Dec 2025)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/generic-family-lang-attr-cascade-expected.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/generic-family-lang-attr-cascade-ref.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/generic-family-lang-attr-cascade.html
    M LayoutTests/platform/gtk/TestExpectations
    M LayoutTests/platform/win/TestExpectations
    M LayoutTests/platform/wpe/TestExpectations
    M Source/WebCore/platform/graphics/cocoa/FontDescriptionCocoa.cpp

  Log Message:
  -----------
  outlook.com: Microsoft OWA: ETS:Font Mingliu renders malpositioned numbers in 
Safari
https://bugs.webkit.org/show_bug.cgi?id=304530
rdar://139338599

Reviewed by Elika Etemad.

CoreText returns reserved font names like ".Times Fallback" when
resolving generic families for certain locales (e.g., lang="en-US"
with font-family: serif). Font names starting with '.' are reserved
for system use and must be created via CTFontCreateUIFontForLanguage(),
not standard font lookup.

WebKit cannot look up these reserved names, causing the generic family
to fail and the cascade to continue. This resulted in incorrect font
selection where text would fall through to emoji fonts.

Fix by rejecting font names starting with '.' in platformResolveGenericFamily()
and using settings-based resolution instead.

Tests: 
imported/w3c/web-platform-tests/css/css-fonts/generic-family-lang-attr-cascade-ref.html
       
imported/w3c/web-platform-tests/css/css-fonts/generic-family-lang-attr-cascade.html
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/generic-family-lang-attr-cascade-expected.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/generic-family-lang-attr-cascade-ref.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/generic-family-lang-attr-cascade.html:
 Added.
* Source/WebCore/platform/graphics/cocoa/FontDescriptionCocoa.cpp:
(WebCore::FontDescription::platformResolveGenericFamily):

Canonical link: https://commits.webkit.org/304809@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to