Ideas for further SVG cleanup

Open
#587 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
html

Research direction

Start with the SVG references in the HTML Standard and the linked discussion in whatwg/html#579. Review asyncdefer.svg, sample-url.svg, content-venn.svg, and parsing-model-overview.svg, including their object and img fallbacks and alt handling. Done means the cleanup and accessibility behavior are agreed and consistently applied.

Written by the indexing model from the issue text.

Description

clarification

@domenic in https://github.com/whatwg/html/pull/579#issuecomment-176609257:

  • Use <object> for asyncdefer.svg and sample-url.svg, to give the slightly better UX of selectable text and such.
    • But, what happens to the alt?
  • Get rid of the png fallbacks for content-venn.svg and parsing-model-overview.svg. They seem redundant in this day and age.
    • But, maybe we still want to support UAs that don't do <object>? Like ATs, I assume. Then we would just nest a <img src="....svg"> inside the <object data="....svg">?
  • Finally, we should presumably fix the mismatch between "setting an alt="" on this would be bogus (indeed, it would be non-conforming and bad for accessibility.)" and the presence of alt="" on the content-venn.svg fallback <img>.

CC @doomdavve

Dominant language
HTML
Stars
9.4k
Forks
3.2k
Avg merge
3d 9h
Merged PRs (30d)
38

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.

More from whatwg/html

All issues in whatwg/html

Similar issues

More Accessibility issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.