Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 64c8ac8f0158854af515d1544dabb6fbe00e6c08
      
https://github.com/WebKit/WebKit/commit/64c8ac8f0158854af515d1544dabb6fbe00e6c08
  Author: Alan Baradlay <[email protected]>
  Date:   2025-12-01 (Mon, 01 Dec 2025)

  Changed paths:
    A LayoutTests/fast/inline/blocks-in-inline-dynamic-oof-expected.html
    A LayoutTests/fast/inline/blocks-in-inline-dynamic-oof.html
    M Source/WebCore/rendering/updating/RenderTreeBuilderInline.cpp

  Log Message:
  -----------
  [blocks-in-inline] Fix 
fast/block/positioning/fixed-container-with-relative-parent.html
https://bugs.webkit.org/show_bug.cgi?id=303266

Reviewed by Antti Koivisto.

Leftover anon blocks initiate forced line breaks. Let's remove them when they 
are no longer needed.

<span>
  before
  <div class=out-of-flow></div>
  after
</span>

and

<span>
  before
  <div><div class=out-of-flow></div></div>
  after
</span>

will (and should) always produce different layout.

Test: fast/inline/blocks-in-inline-dynamic-oof.html

* LayoutTests/fast/inline/blocks-in-inline-dynamic-oof-expected.html: Added.
* LayoutTests/fast/inline/blocks-in-inline-dynamic-oof.html: Added.
* Source/WebCore/rendering/updating/RenderTreeBuilderInline.cpp:
(WebCore::RenderTreeBuilder::Inline::wrapRunsOfBlocksInAnonymousBlock):

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



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

Reply via email to