Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8f1b55f545af549e7795a88e31b94ed62404c242
      
https://github.com/WebKit/WebKit/commit/8f1b55f545af549e7795a88e31b94ed62404c242
  Author: Kiet Ho <[email protected]>
  Date:   2026-07-21 (Tue, 21 Jul 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/at-container-serialization-expected.txt
    M Source/WebCore/css/query/ContainerQuery.cpp

  Log Message:
  -----------
  [css-conditional-5] Fix serialization of @container condition
rdar://182530213
https://bugs.webkit.org/show_bug.cgi?id=319683

Reviewed by Tim Nguyen.

The condition in a @container at-rule includes at least one of: container
name, and container query. When serializing the at-rule for cssText, if
both are present, there should be a space in between. But the current
code always insert a space after the name, even if the query is empty.
Fix it to only emit a space if both are present.

Test: 
imported/w3c/web-platform-tests/css/css-conditional/container-queries/at-container-serialization.html

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-conditional/container-queries/at-container-serialization-expected.txt:
* Source/WebCore/css/query/ContainerQuery.cpp:
(WebCore::CQ::serialize):

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



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

Reply via email to