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

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/transformed-table-section-containing-block-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/transformed-table-section-containing-block.html
    M Source/WebCore/rendering/RenderBlock.cpp
    M Source/WebCore/rendering/RenderBox.cpp
    M Source/WebCore/rendering/RenderElement.h
    M Source/WebCore/rendering/RenderObject.cpp

  Log Message:
  -----------
  Transforming a table row group misplaces absolutely positioned children
https://bugs.webkit.org/show_bug.cgi?id=324019
<rdar://problem/187252945>

Reviewed by Antti Koivisto.

A box that starts or stops being the containing block for out-of-flow 
descendants has to take them off the block that currently holds them.
Only RenderBlock and RenderInline called 
removeOutOfFlowBoxesIfNeededOnStyleChange, so a table section gaining a 
transform left its
absolutely positioned descendants registered on the old containing block and 
they were laid out against it.

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/transformed-table-section-containing-block-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/transformed-table-section-containing-block.html:
 Added.
* Source/WebCore/rendering/RenderBlock.cpp:
(WebCore::RenderBlock::styleWillChange):
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::styleWillChange):
* Source/WebCore/rendering/RenderElement.h:
* Source/WebCore/rendering/RenderObject.cpp:
(WebCore::RenderElement::nearestNonAnonymousContainingBlockIncludingSelf const):
(WebCore::RenderObject::containingBlockForPositionType):

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



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

Reply via email to