Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d520f6d77686afdc2dd75e236e1170af78a2f6a4
      
https://github.com/WebKit/WebKit/commit/d520f6d77686afdc2dd75e236e1170af78a2f6a4
  Author: Alan Baradlay <[email protected]>
  Date:   2026-10-10 (Sat, 10 Oct 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    M Source/WebCore/rendering/RenderBlockFlow.h
    M Source/WebCore/rendering/RenderBox.cpp
    M Source/WebCore/rendering/RenderBox.h

  Log Message:
  -----------
  [line-clamp] Floats add to the scrollable overflow of the line-clamp container
https://bugs.webkit.org/show_bug.cgi?id=327020
<rdar://problem/189641420>

Reviewed by Antti Koivisto.

<div style="line-clamp: 2; overflow: auto"><div style="float: left; width: 
10px; height: 200px"></div>Line 1<br>Line 2<br>Line 3</div>

The line-clamp container is two lines tall, but it scrolls to the bottom of the 
float.
"Within a line-clamp container, floats which have not been made into invisible 
boxes must be visually clipped to the
unshaped block-end content edge of the line-clamp container. They do not 
introduce any clearance that would make the
line-clamp container increase its height, and do not contribute to the 
scrollable overflow area."
https://drafts.csswg.org/css-overflow-4/#line-clamp-containers

* LayoutTests/TestExpectations:
* Source/WebCore/rendering/RenderBlockFlow.h:
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::addOverflowFromFloatBox):
(WebCore::RenderBox::addOverflowWithRendererOffset):
* Source/WebCore/rendering/RenderBox.h:

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



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

Reply via email to