Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2697079134d5692e1d4f5835dec913e849ccdee6
https://github.com/WebKit/WebKit/commit/2697079134d5692e1d4f5835dec913e849ccdee6
Author: Etienne Segonzac <[email protected]>
Date: 2026-07-06 (Mon, 06 Jul 2026)
Changed paths:
M LayoutTests/interaction-region/layer-tree-expected.txt
A LayoutTests/interaction-region/opacity-expected.txt
A LayoutTests/interaction-region/opacity.html
M Source/WebCore/page/InteractionRegion.cpp
Log Message:
-----------
[visionOS] Skip InteractionRegions when ancestor has opacity: 0
https://bugs.webkit.org/show_bug.cgi?id=318682
<rdar://175277028>
Reviewed by Simon Fraser.
Check if the renderer or any ancestor has a 0 opacity before generating
an InteractionRegion. This fixes some "phantom" glow effects appearing
on transparent content.
Test: interaction-region/opacity.html
* LayoutTests/interaction-region/layer-tree-expected.txt:
Updated expectations since this test had an `opacity: 0` element.
* LayoutTests/interaction-region/opacity-expected.txt: Added.
* LayoutTests/interaction-region/opacity.html: Added.
Add a new test covering this.
* Source/WebCore/page/InteractionRegion.cpp:
(WebCore::interactionRegionForRenderedRegion):
Add `isEffectivelyTransparent()` check.
Canonical link: https://commits.webkit.org/316590@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications