Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e7caeaf2119343d7c74b4673ff736c80298d9ae8
      
https://github.com/WebKit/WebKit/commit/e7caeaf2119343d7c74b4673ff736c80298d9ae8
  Author: Kiet Ho <[email protected]>
  Date:   2026-08-18 (Tue, 18 Aug 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/at-supports-named-feature-001-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/at-supports-named-feature-001.html
    M Source/WebCore/css/CSSValueKeywords.in
    M Source/WebCore/css/parser/CSSSupportsParser.cpp
    M Source/WebCore/css/parser/CSSSupportsParser.h

  Log Message:
  -----------
  [css-conditional-5] Support @supports named-feature()
rdar://183688843
https://bugs.webkit.org/show_bug.cgi?id=320705

Reviewed by Tim Nguyen.

This patch implements parsing support for @supports named-feature().
The supported name features are hardcoded; it's expected that features
will be added rather sparingly (at most one or two yearly), and only
when it's implemented in WebKit.

Test: 
imported/w3c/web-platform-tests/css/css-conditional/at-supports-named-feature-001.html

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/at-supports-named-feature-001-expected.txt:
    - Test progression.

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/at-supports-named-feature-001.html:
    - Add some invalid test cases.
    - Fix a bug where the test uses `Boolean.prototype.toString` to
      serialize a string, but that method returns "false" for every
      input, including `true`.

* Source/WebCore/css/CSSValueKeywords.in:
* Source/WebCore/css/parser/CSSSupportsParser.cpp:
(WebCore::CSSSupportsParser::consumeSupportsFunction):
(WebCore::CSSSupportsParser::consumeSupportsNamedFeatureFunction):
* Source/WebCore/css/parser/CSSSupportsParser.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to