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

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/CSS2/floats/float-in-block-in-inline-001-expected.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/CSS2/floats/float-in-block-in-inline-001-ref.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/CSS2/floats/float-in-block-in-inline-001.html
    M Source/WebCore/rendering/RenderBlockFlow.cpp

  Log Message:
  -----------
  [block-in-inline] A block level box on a line is handed its own float as an 
intruding float
https://bugs.webkit.org/show_bug.cgi?id=321807

Reviewed by Antti Koivisto.

layoutSimpleBlockContentInInline lays the block level boxes on our lines out 
and gives up when the result is not
usable, but the floats that layout propagated up into us stay on our float 
list. Normal inline layout then lays the
same boxes out again and takes that list for the floats intruding from outside, 
so a box both avoids and stops
contributing the overflow of the float it places itself. Put the list back the 
way it was before falling back.

* Source/WebCore/rendering/RenderBlockFlow.cpp:
(WebCore::RenderBlockFlow::layoutSimpleBlockContentInInline):
* 
LayoutTests/imported/w3c/web-platform-tests/css/CSS2/floats/float-in-block-in-inline-001.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/CSS2/floats/float-in-block-in-inline-001-ref.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/CSS2/floats/float-in-block-in-inline-001-expected.html:
 Added.

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



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

Reply via email to