Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 75791979a5d3867596d4a3d365ada2c41590771c
      
https://github.com/WebKit/WebKit/commit/75791979a5d3867596d4a3d365ada2c41590771c
  Author: Alan Baradlay <[email protected]>
  Date:   2026-08-05 (Wed, 05 Aug 2026)

  Changed paths:
    A LayoutTests/mathml/token-element-with-text-content-expected.txt
    A LayoutTests/mathml/token-element-with-text-content.html
    M Source/WebCore/rendering/updating/RenderTreeBuilderBlock.cpp

  Log Message:
  -----------
  [anon-block-removal] Boxes that lay out their own children must keep their 
anonymous block wrappers
https://bugs.webkit.org/show_bug.cgi?id=321085

Reviewed by Antti Koivisto.

Skipping anonymous block generation puts a container's block level children 
into an inline formatting
context. That only works where the container is a block formatting context 
laying its children out as
lines. Several box types instead lay their children out themselves, or take 
them out of the flow, and
need them wrapped.

The test covers the MathML case, where four of the five token elements laid out 
at width 0 without this
patch. The fieldset and multicol cases are covered by existing tests.

* Source/WebCore/rendering/updating/RenderTreeBuilderBlock.cpp:
(WebCore::RenderTreeBuilder::Block::attach):
* LayoutTests/mathml/token-element-with-text-content.html: Added.
* LayoutTests/mathml/token-element-with-text-content-expected.txt: Added.

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



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

Reply via email to