Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0524abc580d63aa50c4f670b2b42b8ab6fac9d54
      
https://github.com/WebKit/WebKit/commit/0524abc580d63aa50c4f670b2b42b8ab6fac9d54
  Author: Antti Koivisto <[email protected]>
  Date:   2025-09-27 (Sat, 27 Sep 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-mixins/dashed-function-named-arg.tentative-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-mixins/dashed-function-parsing-expected.txt
    M Source/WebCore/css/parser/CSSVariableParser.cpp

  Log Message:
  -----------
  [css-mixins-1] Allow <dashed-function> in property values.
https://bugs.webkit.org/show_bug.cgi?id=299654
rdar://161467239

Reviewed by Alan Baradlay.

A property value containing a valid <dashed-function> (like "--foo(ba, bazr)") 
is valid at parse time,
similar to those with var().

https://drafts.csswg.org/css-mixins/#typedef-dashed-function

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-mixins/dashed-function-named-arg.tentative-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-mixins/dashed-function-parsing-expected.txt:
* Source/WebCore/css/parser/CSSVariableParser.cpp:
(WebCore::classifyBlock):

Also refactor this to use a return value rather than return arguments.

(WebCore::isValidVariableReference):
(WebCore::isValidConstantReference):
(WebCore::isValidDashedFunction):

Validate the arguments of

<dashed-function> = --*( <declaration-value>#? )

(WebCore::classifyVariableRange):
(WebCore::CSSVariableParser::containsValidVariableReferences):
(WebCore::CSSVariableParser::parseDeclarationValue):
(WebCore::CSSVariableParser::parseInitialValueForUniversalSyntax):

Canonical link: https://commits.webkit.org/300633@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to