Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b4e7e8bd27ef15d5d513534bda2750aba6fe48e0
https://github.com/WebKit/WebKit/commit/b4e7e8bd27ef15d5d513534bda2750aba6fe48e0
Author: Antti Koivisto <[email protected]>
Date: 2026-05-20 (Wed, 20 May 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-mixins/function-attr-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-values/attr-all-types-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-values/attr-security-expected.txt
M Source/WebCore/style/StyleSubstitutionResolver.cpp
Log Message:
-----------
Align with disallowing <url> type in attr()
https://bugs.webkit.org/show_bug.cgi?id=314833
rdar://problem/177540489
Reviewed by Anne van Kesteren.
Disallow <url> in attr() per
https://github.com/w3c/csswg-drafts/issues/5079#issuecomment-3329306728
Also fix handling of unknown unit types: an <attr-unit> that does not
match a known CSS unit should trigger fallback rather than failing the
substitution outright.
Spec: https://drafts.csswg.org/css-values-5/#attr-notation
*
LayoutTests/imported/w3c/web-platform-tests/css/css-mixins/function-attr-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-values/attr-all-types-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-values/attr-security-expected.txt:
* Source/WebCore/style/StyleSubstitutionResolver.cpp:
(WebCore::Style::SubstitutionResolver::substituteAttrFunction):
Canonical link: https://commits.webkit.org/313593@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications