-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
role="math" on images #523
Comments
To add some context, I bring you a use case in digital publishing. Many publishers are currently working to remediate legacy content, primarily in EPUB 2 format, to make it accessible. For years, support for mathematical formulas in MathML was not well implemented in reading applications and was not supported by the digital format itself (EPUB 2). As a result, mathematical formulas were often inserted as images. Now, in the process of making large quantities of publications accessible, managing mathematical formulas presents a significant challenge. Allowing the use of This approach would enable publishers to quickly improve the accessibility of vast catalogs of mathematical content, while providing a richer reading experience for all users. It's important to note that for new publications, publishers are already working with MathML to ensure optimal accessibility and representation of mathematical content. However, the ability to use |
apologies for the long delay in responding. but yah, this seems a miss. while not ideal to use images, as the ARIA spec notes, legacy content might need it - so it should be allowed. now, that might then fail other wcag related rules (images of text, for instance) but that's out of the scope of this spec to limit. |
closes #523 includes allowance of `role=math` on `img` elements. Per the ARIA specification: >While it is not ideal to use an image of a mathematical expression, there exists a significant amount of legacy content where images are used to represent mathematical expressions. Authors SHOULD ensure that images of math are labeled by text that describes the mathematical expression as it might be spoken. so this role should be allowed for such instances, and any further accessibility gaps caused by the use of the img element would be for authors to resolve beyond the scope of what this spec covers.
Analyzing some legacy EPUB files with mathematical formulas inserted as images, we realized an inconsistency between the ARIA and HTML-ARIA specifications.
The WAI-ARIA 1.2 specification provides an example of using
role="math"
on an<img>
element to indicate that it represents a mathematical expression:However, according to the ARIA in HTML specification, the
math
role is not allowed on<img>
elements. This discrepancy between the two specifications has led to confusion and inconsistent validation results.The EPUBCheck validator reports an error when encountering
role="math"
on<img>
elements, as it follows the ARIA in HTML specification (w3c/epubcheck#1562 (comment)).The text was updated successfully, but these errors were encountered: