Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 20193b191530c31847cb70759f7646d8cd805236
      
https://github.com/WebKit/WebKit/commit/20193b191530c31847cb70759f7646d8cd805236
  Author: Joshua Hoffman <[email protected]>
  Date:   2026-04-02 (Thu, 02 Apr 2026)

  Changed paths:
    A 
LayoutTests/accessibility/image-overlay-elements-presentational-expected.txt
    A LayoutTests/accessibility/image-overlay-elements-presentational.html
    M LayoutTests/platform/glib/TestExpectations
    M Source/WebCore/accessibility/AccessibilityRenderObject.cpp
    M Source/WebCore/accessibility/AccessibilityRenderObject.h

  Log Message:
  -----------
  AX: Presentational/hidden images shouldn't expose image overlay children
https://bugs.webkit.org/show_bug.cgi?id=311358
rdar://159304061

Reviewed by Tyler Wilcock.

An image with role="presentation" can have image overlay children (e.g., OCRed 
text). We
need to make sure that we don't expose those, or add them to the accessibility 
hierarchy
when they are descendants of an ignored image, as they are intrinsically tied.

Test: accessibility/image-overlay-elements-presentational.html
* LayoutTests/accessibility/image-overlay-elements-presentational-expected.txt: 
Added.
* LayoutTests/accessibility/image-overlay-elements-presentational.html: Added.
* Source/WebCore/accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::computeIsIgnored const):
(WebCore::AccessibilityRenderObject::isInsideIgnoredImageOverlay const):
(WebCore::AccessibilityRenderObject::imageOverlayElements):
* Source/WebCore/accessibility/AccessibilityRenderObject.h:

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



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

Reply via email to