Bug 270694 - AX: CSS content property referencing an image ignores empty string alt text
Summary: AX: CSS content property referencing an image ignores empty string alt text
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 270377
Blocks:
  Show dependency treegraph
 
Reported: 2024-03-08 04:59 PST by Anne van Kesteren
Modified: 2024-03-08 08:50 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anne van Kesteren 2024-03-08 04:59:38 PST
This is noticeable in particular with something like

  content: "x" url(x) / "";

A test for this has been added here: https://github.com/web-platform-tests/wpt/pull/44971.

This is somewhat tricky to fix as the current code for this in AccessibilityNodeObject handles this and the img element at the same time apparently.
Comment 1 Radar WebKit Bug Importer 2024-03-08 04:59:48 PST
<rdar://problem/124267497>
Comment 2 Anne van Kesteren 2024-03-08 08:50:10 PST
Hmm, I must have been mistaken yesterday when I thought this change had an effect. It's not needed after all.