Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5dc317e89095e74b91986953c624145aaf36d3fe
https://github.com/WebKit/WebKit/commit/5dc317e89095e74b91986953c624145aaf36d3fe
Author: Tyler Wilcock <[email protected]>
Date: 2026-09-06 (Sun, 06 Sep 2026)
Changed paths:
A
LayoutTests/accessibility/isolated-tree/mac/figure-caption-names-image-expected.txt
A
LayoutTests/accessibility/isolated-tree/mac/figure-caption-names-image.html
A LayoutTests/accessibility/mac/figure-caption-names-image-expected.txt
A LayoutTests/accessibility/mac/figure-caption-names-image.html
M Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp
Log Message:
-----------
AX: In isolated tree mode, an image keeps a stale name when its figure gains
or loses flow content
https://bugs.webkit.org/show_bug.cgi?id=323520
rdar://186762993
Reviewed by Chris Fleizach.
Per html-aam (w3c/aria#2224), an <img> with neither alt nor title derives its
accessible
name from an ancestor <figure>'s <figcaption>, but only while that figure holds
no other
flow content. This accessible name is stored in AXProperty::{AccessibilityText,
Description},
which wasn't updated the figure subtree changed. This is now fixed.
*
LayoutTests/accessibility/isolated-tree/mac/figure-caption-names-image-expected.txt:
Added.
* LayoutTests/accessibility/isolated-tree/mac/figure-caption-names-image.html:
Added.
* LayoutTests/accessibility/mac/figure-caption-names-image-expected.txt: Added.
* LayoutTests/accessibility/mac/figure-caption-names-image.html: Added.
* Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp:
(WebCore::AXIsolatedTree::updateNodeProperties):
(WebCore::AXIsolatedTree::updateDependentProperties):
Canonical link: https://commits.webkit.org/320586@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications