Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 04ea7c36cab8de930b1477f15e9fc921380e080c
https://github.com/WebKit/WebKit/commit/04ea7c36cab8de930b1477f15e9fc921380e080c
Author: Said Abou-Hallawa <[email protected]>
Date: 2025-12-01 (Mon, 01 Dec 2025)
Changed paths:
A
LayoutTests/fast/forms/appearance-base/appearance-base-checkable-basics-expected.html
A
LayoutTests/fast/forms/appearance-base/appearance-base-checkable-basics.html
M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
M Source/WebCore/css/CSSProperty.h
M Source/WebCore/css/CSSValueKeywords.in
M Source/WebCore/css/parser/CSSParserContext.cpp
M Source/WebCore/css/parser/CSSParserContext.h
M Source/WebCore/css/parser/CSSPropertyParser.cpp
M Source/WebCore/css/parser/CSSPropertyParserConsumer+Primitives.cpp
M Source/WebCore/css/parser/CSSPropertyParserConsumer+Primitives.h
M Source/WebCore/css/parser/CSSPropertyParserResult.cpp
M Source/WebCore/css/parser/CSSPropertyParserResult.h
M Source/WebCore/css/parser/CSSVariableParser.cpp
M Source/WebCore/style/StyleBuilder.cpp
M Source/WebCore/style/StyleBuilder.h
Log Message:
-----------
[appearance: base] Add -internal-auto-base() and resolve it by substitution
https://bugs.webkit.org/show_bug.cgi?id=303078
rdar://165381349
Reviewed by Tim Nguyen.
To add support for `appearance: base` a new internal function
`-internal-auto-base()`
is added. This functional will resolve and substitute itself with one of two
values
depending on whether the style has `appearance: base` or not.
No UA style sheet changes will be added in this PR. An internal setting which
enables parsing `-internal-auto-base()` on regular author style will be added
for
now. This setting will be used to write layout tests until default properties
for
`appearance: base` form controls are added in the UA style sheet.
Test: fast/forms/appearance-base/appearance-base-checkable-basics.html
*
LayoutTests/fast/forms/appearance-base/appearance-base-checkable-basics-expected.html:
Added.
* LayoutTests/fast/forms/appearance-base/appearance-base-checkable-basics.html:
Added.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/css/CSSProperty.h:
(WebCore::CSSProperty::CSSProperty):
* Source/WebCore/css/CSSValueKeywords.in:
* Source/WebCore/css/parser/CSSParserContext.cpp:
(WebCore::applyUASheetBehaviorsToContext):
(WebCore::add):
* Source/WebCore/css/parser/CSSParserContext.h:
* Source/WebCore/css/parser/CSSPropertyParser.cpp:
(WebCore::consumeFunctionArgument):
(WebCore::consumeInternalAutoBaseFunction):
(WebCore::consumeStyleProperty):
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Primitives.cpp:
(WebCore::CSSPropertyParserHelpers::consumeArgument):
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Primitives.h:
* Source/WebCore/css/parser/CSSPropertyParserResult.cpp:
(WebCore::CSS::PropertyParserResult::addProperty):
* Source/WebCore/css/parser/CSSPropertyParserResult.h:
* Source/WebCore/css/parser/CSSVariableParser.cpp:
(WebCore::isValidDashedFunction):
* Source/WebCore/style/StyleBuilder.cpp:
(WebCore::Style::Builder::applyProperty):
(WebCore::Style::Builder::resolveInternalAutoBaseFunction):
* Source/WebCore/style/StyleBuilder.h:
Canonical link: https://commits.webkit.org/303693@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications