Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 835b5415b15c3898437a9c2979b959216c0ed538
      
https://github.com/WebKit/WebKit/commit/835b5415b15c3898437a9c2979b959216c0ed538
  Author: Kate Lee <[email protected]>
  Date:   2026-05-28 (Thu, 28 May 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/scroll-state/container-type-scroll-state-computed-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/scroll-state/container-type-scroll-state-parsing-expected.txt
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/css/CSSValueKeywords.in
    M Source/WebCore/css/parser/CSSParserContext.cpp
    M Source/WebCore/css/parser/CSSParserContext.h

  Log Message:
  -----------
  Add parsing of scroll-state value for container-type property
https://bugs.webkit.org/show_bug.cgi?id=314082

Reviewed by Tim Nguyen.

Add CSSOM-level parsing support for the scroll-state value of the
container-type property. The grammar becomes
normal | [ [ size | inline-size ] || scroll-state ], so scroll-state
may appear on its own or combined with size / inline-size.

Parsing of scroll-state is gated behind a new feature flag
CSSScrollStateContainerQueriesEnabled (testable, default off). When
the flag is disabled, scroll-state cannot be parsed, so all existing
code paths remain unaffected.

This change is intentionally limited to specified-value parsing
(CSSOM round-trip): the value is accepted by the parser and round
trips through element.style[...] and CSS.supports. The computed
value, container query evaluation, and any layout effects are
deferred to follow-up changes -- until then, scroll-state is treated
as invalid at computed-value time and falls back to the initial value
(normal).

Tests: 
imported/w3c/web-platform-tests/css/css-conditional/container-queries/scroll-state/container-type-scroll-state-parsing.html
Canonical link: https://commits.webkit.org/314023@main



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

Reply via email to