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

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-block-content-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-block-content.html
    M Source/WebCore/rendering/updating/RenderTreeBuilderBlock.cpp

  Log Message:
  -----------
  [anon-block-removal] An outside list marker makes its list item's children 
inline
https://bugs.webkit.org/show_bug.cgi?id=321343
<rdar://problem/184380304>

Reviewed by Antti Koivisto.

An outside marker takes no part in the list item's in-flow layout, so it must 
not turn childrenInline() on.
Letting it puts a list item whose content is a block level box onto the inline 
path, where the marker takes a
line of its own and the block starts below it - 
<ul><li><div>text</div></li></ul> is 58 tall instead of 40.

Nothing rebuilds anonymous wrappers on this path, so childrenInline() also has 
to be recomputed when a child
is detached. A marker changing from inside to outside is destroyed and 
reattached, and the bit the inside
marker turned on would otherwise stay on.

* Source/WebCore/rendering/updating/RenderTreeBuilderBlock.cpp:
(WebCore::hasInlineInFlowChild):
(WebCore::RenderTreeBuilder::Block::attach):
(WebCore::RenderTreeBuilder::Block::detach):
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-block-content.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-block-content-expected.txt:
 Added.

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



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

Reply via email to