Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c714b8656601d77dd8855d9aa3a3a54e49b442e4
      
https://github.com/WebKit/WebKit/commit/c714b8656601d77dd8855d9aa3a3a54e49b442e4
  Author: Alan Baradlay <[email protected]>
  Date:   2026-09-04 (Fri, 04 Sep 2026)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-float-in-content-expected.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-float-in-content-ref.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-float-in-content.html
    M Source/WebCore/layout/floats/PlacedFloats.cpp
    M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp
    M Source/WebCore/rendering/RenderListItem.cpp
    M Source/WebCore/rendering/RenderListOutsideMarker.h

  Log Message:
  -----------
  [list-marker] A float in the list item's content pushes the list marker out 
with the line
https://bugs.webkit.org/show_bug.cgi?id=323453
rdar://problem/186680551

Reviewed by Antti Koivisto.

The marker hangs off the line's inline start edge, which a float of that 
formatting context has already pushed
inwards. Give that room back. A float intruding from earlier content keeps the 
marker with the line (webkit.org/b/166528).

Test: 
imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-float-in-content.html

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-float-in-content-expected.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-float-in-content-ref.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-float-in-content.html:
 Added.
* Source/WebCore/layout/floats/PlacedFloats.cpp:
(WebCore::Layout::PlacedFloats::Item::isInFormattingContextOf const):
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::setExcludedMarkerPositions):
* Source/WebCore/rendering/RenderListItem.cpp:
(WebCore::excludedMarkerLogicalLeftOffsetFor):
(WebCore::RenderListItem::placeExcludedMarker):
* Source/WebCore/rendering/RenderListOutsideMarker.h:

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



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

Reply via email to