Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a2ad036263e755b05cf39684ac4d2b76c6877639
https://github.com/WebKit/WebKit/commit/a2ad036263e755b05cf39684ac4d2b76c6877639
Author: Joshua Hoffman <[email protected]>
Date: 2025-07-04 (Fri, 04 Jul 2025)
Changed paths:
A LayoutTests/accessibility/element-outside-modal-with-zindex-expected.txt
A LayoutTests/accessibility/element-outside-modal-with-zindex.html
M LayoutTests/platform/glib/TestExpectations
M Source/WebCore/accessibility/AccessibilityObject.cpp
M Source/WebCore/accessibility/AccessibilityObject.h
Log Message:
-----------
AX: consider z-index when computing ignored when a modal is present
https://bugs.webkit.org/show_bug.cgi?id=295404
rdar://154886931
Reviewed by Tyler Wilcock.
There can be authoring errors when using aria-modal, and frequently, absolutely
positioned
content that should be floating above the modal is excluded from accessibility
because of
our modal heuristics. We can be more forgiving by also checking if content has
a higher
z-index than the modal, indicating that it should be accessible.
* LayoutTests/accessibility/element-outside-modal-with-zindex-expected.txt:
Added.
* LayoutTests/accessibility/element-outside-modal-with-zindex.html: Added.
* LayoutTests/platform/glib/TestExpectations:
* Source/WebCore/accessibility/AccessibilityObject.cpp:
(WebCore::nearestRendererFromNode):
(WebCore::zIndexFromRenderer):
(WebCore::AccessibilityObject::ignoredFromModalPresence const):
(WebCore::AccessibilityObject::rendererOrNearestAncestor const):
* Source/WebCore/accessibility/AccessibilityObject.h:
Canonical link: https://commits.webkit.org/297016@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