Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 43d2c8be06c5d73b63b4fa3b85139cc874614c19
https://github.com/WebKit/WebKit/commit/43d2c8be06c5d73b63b4fa3b85139cc874614c19
Author: Taher Ali <[email protected]>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-link-params/link-parameters-typed-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/css-link-params/link-parameters-typed.html
M Source/WebCore/Headers.cmake
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/css/CSSValueKeywords.in
M Source/WebCore/css/parser/CSSCustomPropertySyntax.h
M Source/WebCore/css/parser/CSSPropertyParserConsumer+LinkParameters.cpp
M Source/WebCore/css/values/link-params/CSSLinkParameter.h
A Source/WebCore/css/values/primitives/CSSTypeSpecifier.cpp
A Source/WebCore/css/values/primitives/CSSTypeSpecifier.h
M Source/WebCore/style/StyleEnvironmentVariables.cpp
M Source/WebCore/style/values/link-params/StyleLinkParameters.cpp
M Source/WebCore/style/values/link-params/StyleLinkParameters.h
A Source/WebCore/style/values/primitives/StyleTypeSpecifier.h
Log Message:
-----------
[css-link-params] Support a <css-type> in param()
https://bugs.webkit.org/show_bug.cgi?id=324205
rdar://187419885
Reviewed by Sam Weinig.
param() takes an optional <css-type> after the <dashed-ident>, which the spec
uses to decide whether a value resolves against the element context. Parse and
serialize it. Nothing reads the type yet, so there is no rendering change.
Test:
imported/w3c/web-platform-tests/css/css-link-params/link-parameters-typed.html
*
LayoutTests/imported/w3c/web-platform-tests/css/css-link-params/link-parameters-typed-expected.txt:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-link-params/link-parameters-typed.html:
Added.
* Source/WebCore/css/parser/CSSCustomPropertySyntax.h:
* Source/WebCore/css/parser/CSSPropertyParserConsumer+LinkParameters.cpp:
(WebCore::CSSPropertyParserHelpers::consumeParamFunction):
(WebCore::CSSPropertyParserHelpers::consumeParamSpec):
* Source/WebCore/css/values/link-params/CSSLinkParameter.h:
(WebCore::CSS::get):
(WebCore::CSS::ParamSpec::switchOn const):
* Source/WebCore/style/StyleEnvironmentVariables.cpp:
(WebCore::Style::EnvironmentVariables::setLinkParameters):
* Source/WebCore/style/values/link-params/StyleLinkParameters.cpp:
(WebCore::Style::CSSValueConversion<LinkParameter>::operator):
(WebCore::Style::CSSValueCreation<LinkParameter>::operator):
(WebCore::Style::Serialize<CSS::CSSType>::operator):
(WebCore::Style::toStyleParamSpec):
(WebCore::Style::toCSSParamSpec):
(WebCore::Style::ParamSpec::name const):
* Source/WebCore/style/values/link-params/StyleLinkParameters.h:
(WebCore::Style::get):
(WebCore::Style::ParamSpec::switchOn const):
* Source/WebCore/Headers.cmake:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/css/CSSValueKeywords.in:
* Source/WebCore/css/values/primitives/CSSTypeSpecifier.h: Added.
(WebCore::CSS::Serialize<TypeSpecifier>::operator()):
(WebCore::CSS::operator<<):
* Source/WebCore/style/values/primitives/StyleTypeSpecifier.h: Added.
* Source/WebCore/Sources.txt:
* Source/WebCore/css/values/primitives/CSSTypeSpecifier.cpp: Added.
(WebCore::CSS::Serialize<TypeSpecifier>::operator):
(WebCore::CSS::operator<<):
Canonical link: https://commits.webkit.org/321221@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications