Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cfe78033929be37518c16541ec3c68ad69169fb4
https://github.com/WebKit/WebKit/commit/cfe78033929be37518c16541ec3c68ad69169fb4
Author: Aliaksandr Kalenik <[email protected]>
Date: 2025-07-03 (Thu, 03 Jul 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-model/grid-item-hit-test-expected.txt
M Source/WebCore/rendering/RenderGrid.cpp
M Source/WebCore/rendering/RenderGrid.h
Log Message:
-----------
[css-grid] Align grid items hit-testing order with painting order
https://bugs.webkit.org/show_bug.cgi?id=295421
Reviewed by Alan Baradlay.
Items in a grid container, similar to those in a flex container should
behave like inline-blocks in hit-testing
(https://www.w3.org/TR/css-grid-2/#z-order), which means each grid item
should be treated as if it creates a stacking context. This change
implements this behavior by overriding `hitTestChildren()` in
`RenderGrid` with logic similar to that used in
`RenderFlexibleBox::hitTestChildren()`.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/grid-model/grid-item-hit-test-expected.txt:
* Source/WebCore/rendering/RenderGrid.cpp:
(WebCore::RenderGrid::hitTestChildren):
* Source/WebCore/rendering/RenderGrid.h:
Canonical link: https://commits.webkit.org/297001@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