Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ad9093ff9b6cd2716553c0de0944f57a5008cdae
https://github.com/WebKit/WebKit/commit/ad9093ff9b6cd2716553c0de0944f57a5008cdae
Author: Vitor Roriz <[email protected]>
Date: 2026-10-14 (Wed, 14 Oct 2026)
Changed paths:
A LayoutTests/fast/css/text-scale/parsing-dynamic-expected.txt
A LayoutTests/fast/css/text-scale/parsing-dynamic.html
A LayoutTests/fast/css/text-scale/parsing-flag-disabled-expected.txt
A LayoutTests/fast/css/text-scale/parsing-flag-disabled.html
A LayoutTests/fast/css/text-scale/parsing-flag-runtime-toggle-expected.txt
A LayoutTests/fast/css/text-scale/parsing-flag-runtime-toggle.html
A LayoutTests/fast/css/text-scale/parsing-static-expected.txt
A LayoutTests/fast/css/text-scale/parsing-static.html
M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
M Source/WebCore/dom/Document.cpp
M Source/WebCore/dom/Document.h
M Source/WebCore/html/HTMLMetaElement.cpp
M Source/WebCore/testing/Internals.cpp
M Source/WebCore/testing/Internals.h
M Source/WebCore/testing/Internals.idl
Log Message:
-----------
[css-fonts] Parse <meta name="text-scale"> behind a feature flag
https://bugs.webkit.org/show_bug.cgi?id=327464
rdar://189959709
Reviewed by Elika Etemad.
CSS Fonts 5 lets a page opt in to the user's preferred text size with
<meta name="text-scale" content="scale">:
https://drafts.csswg.org/css-fonts-5/#text-scale-meta
This is the first step and only records the mode on Document. Nothing reads it
yet besides Internals.
* LayoutTests/fast/css/text-scale/parsing-dynamic-expected.txt: Added.
* LayoutTests/fast/css/text-scale/parsing-dynamic.html: Added.
* LayoutTests/fast/css/text-scale/parsing-flag-disabled-expected.txt: Added.
* LayoutTests/fast/css/text-scale/parsing-flag-disabled.html: Added.
* LayoutTests/fast/css/text-scale/parsing-flag-runtime-toggle-expected.txt:
Added.
* LayoutTests/fast/css/text-scale/parsing-flag-runtime-toggle.html: Added.
* LayoutTests/fast/css/text-scale/parsing-static-expected.txt: Added.
* LayoutTests/fast/css/text-scale/parsing-static.html: Added.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/dom/Document.cpp:
(WebCore::Document::metaElementTextScaleChanged):
(WebCore::Document::textScaleMeta const):
* Source/WebCore/dom/Document.h:
* Source/WebCore/html/HTMLMetaElement.cpp:
(WebCore::isNameTextScale):
(WebCore::HTMLMetaElement::removingSteps):
(WebCore::HTMLMetaElement::process):
* Source/WebCore/testing/Internals.cpp:
(WebCore::Internals::textScaleMetaMode const):
* Source/WebCore/testing/Internals.h:
* Source/WebCore/testing/Internals.idl:
Canonical link: https://commits.webkit.org/323782@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications