Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 252a700393d81b8183ca1db1bbb675aec5b461d3
https://github.com/WebKit/WebKit/commit/252a700393d81b8183ca1db1bbb675aec5b461d3
Author: Taher Ali <[email protected]>
Date: 2026-09-22 (Tue, 22 Sep 2026)
Changed paths:
M LayoutTests/TestExpectations
A
LayoutTests/imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/link-parameters-invalid-typed-value-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/link-parameters-invalid-typed-value-ref.html
A
LayoutTests/imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/link-parameters-invalid-typed-value.html
M Source/WebCore/style/StyleEnvironmentVariables.cpp
M Source/WebCore/style/values/link-params/StyleLinkParameters.cpp
M Source/WebCore/style/values/link-params/StyleLinkParameters.h
Log Message:
-----------
[css-link-params] Resolve typed param() values
https://bugs.webkit.org/show_bug.cgi?id=324359
rdar://187593612
Reviewed by Tim Nguyen.
A typed param() computes its value against the element it is specified on, which
the resource cannot see.
We do this at style-build time, since BuilderState supplies the element.
The result is stored alongside the specified value in StyleLinkParameters
instead of replacing them and is left out of serialization, so
getComputedStyle() still reports the value as specified.
* LayoutTests/TestExpectations:
*
LayoutTests/imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/link-parameters-invalid-typed-value-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/link-parameters-invalid-typed-value-ref.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/svg/styling/css-linked-parameters/link-parameters-invalid-typed-value.html:
Added.
* Source/WebCore/style/StyleEnvironmentVariables.cpp:
(WebCore::Style::EnvironmentVariables::setLinkParameters):
* Source/WebCore/style/values/link-params/StyleLinkParameters.cpp:
(WebCore::Style::resolveTypedValue):
(WebCore::Style::CSSValueConversion<LinkParameter>::operator):
* Source/WebCore/style/values/link-params/StyleLinkParameters.h:
Canonical link: https://commits.webkit.org/321581@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications