Skip to content

[css-color] Accessibility of Figures in §4.4 and §5 #7691

@matatk

Description

@matatk

This comment is from the APA WG and relates to our review of CSS Color Module Level 5.

§4.4 Figure 5

  • The <img> needs alt text such as "A color swatch, in a grid layout".
  • The second part is marked up as a <table> but doesn't seem to be one semantically (it's just placing the text to match the layout of the color swatch above). Suggest applying role="presentation" to the table, to remove the tabular structure semantics (or you could re-code it using <div>s and <span>s). That would have the effect of linearizing the table from a screen reader perspective, but that would likely be less confusing than encountering a "table" without headers.

§5 Figure 6 [doesn't have an id]

  • The <img> needs an alt attribute that explains this is a color swatch in a grid formation (as per figure 5) but that circles are imposed on each grid square. The <figcaption> does a great job of explaining the rest.
  • As with figure 5, this table should have the table semantics removed (or be re-coded using <div>s and <span>s).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions