Skip to content

Additional inference rules for nonvisual reading #18

Description

@HadrienGardeur

Once support for parsing HTML/CSS (#180) has been added, we should be in a position to:

  • check for decorative images (with an ARIA role set to presentation or none, which should translate into the presentation role in Guided Navigation)
  • identify images where the height/width ratio makes them decorative
  • and/or images with decent enough alternate descriptions (rules still TBD, but for example we'll check for filenames using a regexp)

If all images are:

… then we should be able to infer "accessModeSufficient": "textual".

Given the need to parse HTML to support this inference, we'll put this feature behind an optional flag for both rwp manifest and rwp serve.

Activity

  1. added
    manifest
    on May 7, 2025
  2. gautierchomel commented on May 15, 2025

    @gautierchomel
    Member

    See discussion #28 for "decent enough alternate descriptions" rules.

  3. gautierchomel commented on May 15, 2025

    @gautierchomel
    Member

    I am not sure we can safely infer "accessModeSufficient": "textual" with "decent enough alternate descriptions" rules.

    I would feel safer with a trigger warning about "probably bad alternate text".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

manifest

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions