Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 37e919fcc61695e0f5ddd948ca1b6929b47e57f7
      
https://github.com/WebKit/WebKit/commit/37e919fcc61695e0f5ddd948ca1b6929b47e57f7
  Author: islandryu <[email protected]>
  Date:   2026-02-27 (Fri, 27 Feb 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    M Source/WebCore/rendering/RenderCounter.cpp

  Log Message:
  -----------
  Do not apply style containment to elements without a principal box
https://bugs.webkit.org/show_bug.cgi?id=308295

Reviewed by Alan Baradlay.

Style containment should have no effect on elements that do not generate
a principal box, per the CSS Containment specification.

WebKit currently applies `contain: style` to such elements.
This change makes the behavior spec-compliant.

Spec:
https://drafts.csswg.org/css-contain/#containment-style

WPT:
https://wpt.live/css/css-contain/contain-style-counters-002.html

This behavior should be covered by 
LayoutTests/imported/w3c/web-platform-tests/css/css-contain/contain-style-counters-002.html

* LayoutTests/TestExpectations:
* Source/WebCore/rendering/RenderCounter.cpp:
(WebCore::ancestorStyleContainmentObject):

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



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

Reply via email to