w3c / w3c/csswg-drafts

[css-content-3] Display alternative text of `content` property

Open
#7,974 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-content-3
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

The spec. currently only requires the alternative text of the content property to be exposed as speech output.

Though that text is very similar to the alt attribute on <img> elements, which is also displayed.

So maybe there should be a note that UAs might or even should show the alternative text when the image ca't be loaded in addition to exposing it to the accessibility tree.

Sebastian

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the CSS Content Level 3 draft related to this issue and compare its treatment of alternative text with the described img behavior. Determine whether the specification should mention displaying the alternative text when an image cannot load; done means the issue's proposed clarification is resolved in the draft.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.