Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f8ed5934eb9ee144af6da58a2e049079c273f46c
      
https://github.com/WebKit/WebKit/commit/f8ed5934eb9ee144af6da58a2e049079c273f46c
  Author: Taher Ali <[email protected]>
  Date:   2025-09-16 (Tue, 16 Sep 2025)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/svg/coordinate-systems/out-of-flow-svg-root-expected.html
    A 
LayoutTests/imported/w3c/web-platform-tests/svg/coordinate-systems/out-of-flow-svg-root-ref.html
    A 
LayoutTests/imported/w3c/web-platform-tests/svg/coordinate-systems/out-of-flow-svg-root.html
    M Source/WebCore/rendering/RenderBox.cpp
    M Source/WebCore/rendering/RenderReplaced.cpp

  Log Message:
  -----------
  Fix absolutely positioned SVGs when ancestor has padding
https://bugs.webkit.org/show_bug.cgi?id=273759
rdar://127608838

Reviewed by Simon Fraser.

When the SVG root is positioned as an out-of-flow element, its size was
previously resolved without considering the padding of the
containing block.

To fix this, we now use the containing block's padding box.

* 
LayoutTests/imported/w3c/web-platform-tests/svg/coordinate-systems/out-of-flow-svg-root-expected.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/svg/coordinate-systems/out-of-flow-svg-root-ref.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/svg/coordinate-systems/out-of-flow-svg-root.html:
 Added.
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::computeReplacedLogicalHeightUsingGeneric const):
* Source/WebCore/rendering/RenderReplaced.cpp:
(WebCore::RenderReplaced::paint):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to