Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: f5332f0677c1f712f9b63abdf717bed79a4ad854 https://github.com/WebKit/WebKit/commit/f5332f0677c1f712f9b63abdf717bed79a4ad854 Author: Eri Pazos Pérez <e...@igalia.com> Date: 2025-08-21 (Thu, 21 Aug 2025)
Changed paths: M LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/generic-family-keywords-001-expected.txt M LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/generic-family-keywords-003-expected.txt M LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/css-styling/default-font-family-expected.txt M LayoutTests/platform/ios/imported/w3c/web-platform-tests/mathml/relations/css-styling/default-font-family-expected.txt M LayoutTests/platform/mac/imported/w3c/web-platform-tests/mathml/relations/css-styling/default-font-family-expected.txt M Source/WebCore/css/CSSFontFaceSet.cpp M Source/WebCore/css/CSSFontSelector.cpp M Source/WebCore/css/CSSProperties.json M Source/WebCore/css/CSSValueKeywords.in M Source/WebCore/css/WebKitFontFamilyNames.in M Source/WebCore/css/mathml.css M Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.cpp M Source/WebCore/platform/graphics/FontGenericFamilies.cpp M Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp M Source/WebCore/platform/graphics/skia/FontCacheSkia.cpp M Source/WebCore/style/StyleExtractorConverter.h M Source/WebCore/style/StyleExtractorSerializer.h M Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js Log Message: ----------- Add support for font-family: math. https://bugs.webkit.org/show_bug.cgi?id=209595 Reviewed by Frédéric Wang. Add a new generic `math` font family following https://www.w3.org/TR/css-fonts-4/#valdef-font-family-math. Use the math font list previously hardcoded in `mathml.css` to find a suitable option. * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/generic-family-keywords-001-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/generic-family-keywords-003-expected.txt: * LayoutTests/platform/glib/imported/w3c/web-platform-tests/mathml/relations/css-styling/default-font-family-expected.txt: * LayoutTests/platform/ios/imported/w3c/web-platform-tests/mathml/relations/css-styling/default-font-family-expected.txt: * LayoutTests/platform/mac/imported/w3c/web-platform-tests/mathml/relations/css-styling/default-font-family-expected.txt: * Source/WebCore/css/CSSFontFaceSet.cpp: (WebCore::CSSFontFaceSet::familyNameFromPrimitive): * Source/WebCore/css/CSSFontSelector.cpp: (WebCore::mathFontList): (WebCore::CSSFontSelector::fontRangesForFamily): * Source/WebCore/css/CSSProperties.json: * Source/WebCore/css/CSSValueKeywords.in: * Source/WebCore/css/WebKitFontFamilyNames.in: * Source/WebCore/css/mathml.css: (math): * Source/WebCore/css/parser/CSSPropertyParserConsumer+Font.cpp: (WebCore::CSSPropertyParserHelpers::genericFontFamily): (WebCore::CSSPropertyParserHelpers::genericFontFamilyIndex): (WebCore::CSSPropertyParserHelpers::consumeGenericFamilyUnresolved): * Source/WebCore/platform/graphics/FontGenericFamilies.cpp: (WebCore::FontGenericFamilies::fontFamily const): * Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp: (WebCore::getFamilyNameStringFromFamily): * Source/WebCore/platform/graphics/skia/FontCacheSkia.cpp: (WebCore::getFamilyNameStringFromFamily): * Source/WebCore/style/StyleExtractorConverter.h: (WebCore::Style::ExtractorConverter::convertFontFamily): * Source/WebCore/style/StyleExtractorSerializer.h: (WebCore::Style::ExtractorSerializer::serializeFontFamily): * Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js: Canonical link: https://commits.webkit.org/299006@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes