Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fbcb00b98357a19fda3018f071dd62ebeac76c57
      
https://github.com/WebKit/WebKit/commit/fbcb00b98357a19fda3018f071dd62ebeac76c57
  Author: rahimabdi <[email protected]>
  Date:   2025-03-13 (Thu, 13 Mar 2025)

  Changed paths:
    R LayoutTests/accessibility/img-no-alt-not-ignored-with-title-expected.txt
    R LayoutTests/accessibility/img-no-alt-not-ignored-with-title.html
    A 
LayoutTests/accessibility/img-with-empty-alt-is-ignored-without-fallbacks-expected.txt
    A 
LayoutTests/accessibility/img-with-empty-alt-is-ignored-without-fallbacks.html
    M LayoutTests/platform/ios/TestExpectations
    M Source/WebCore/accessibility/AccessibilityRenderObject.cpp

  Log Message:
  -----------
  AX: Update accname for presentational images to be ignored despite fallbacks
https://bugs.webkit.org/show_bug.cgi?id=289290
rdar://146429365

Reviewed by Tyler Wilcock.

Where an image element's alt attribute is set to the empty string (i.e. 
alt=""), it is intended that the image
is decorative and not conveyed to assistive technology users. Currently, for 
images
with empty alt that have additional labeling techniques (such as title or 
aria-label), the image is not ignored
and the additional attributes for labeling are honored.

This commit ensures that decorative images supplied with empty alt are ignored 
despite the presence
of other labeling methods such as the title attribute.

* 
LayoutTests/accessibility/img-with-empty-alt-is-ignored-without-fallbacks.html: 
Added.
* LayoutTests/accessibility/img-no-alt-not-ignored-with-title.html: Deleted.
* Source/WebCore/accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::computeIsIgnored const):

Canonical link: https://commits.webkit.org/292105@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