aboutsummaryrefslogtreecommitdiff
path: root/test/command/9467.md
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-02-29 09:20:43 -0800
committerJohn MacFarlane <[email protected]>2024-02-29 09:32:14 -0800
commit757bbeba0fc6fed73f64821f4473c2adf1b398bb (patch)
tree677e364c836a452fa9c5ff08b0c1a3b698a81468 /test/command/9467.md
parent6c88c39c6dbcf8ac4033bf377c71a8713eaba900 (diff)
SelfContained: Add title element to embedded inline svgs...issue9525
from the alt attribute. This works around the fact that present-day screen readers ignore the alt attribute on an svg element. Suggestion is from https://stackoverflow.com/questions/4697100/accessibility-recommended-alt-text-convention-for-svg-and-mathml Addresses #9525. Potential drawbacks: - Should we use the title attribute instead if there is one on the image? Otherwise the results may be unexpected. - Is it a drawback that this alt text will display as popup text when you hover over the image? Can this be suppressed? What about using desc instead of title?
Diffstat (limited to 'test/command/9467.md')
-rw-r--r--test/command/9467.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/command/9467.md b/test/command/9467.md
index 3b6a411e8..6b37d195d 100644
--- a/test/command/9467.md
+++ b/test/command/9467.md
@@ -2,7 +2,7 @@
% pandoc --embed-resources
![](command/9467.svg)
^D
-<p><svg id="svg2" width="191.56267" height="151.71201" viewBox="0 0 191.56267 151.71201" xmlns:svg="http://www.w3.org/2000/svg">
+<p><svg id="svg2" role="img" width="191.56267" height="151.71201" viewBox="0 0 191.56267 151.71201" xmlns:svg="http://www.w3.org/2000/svg">
<defs id="svg2_defs6">
<clipPath clipPathUnits="userSpaceOnUse" id="svg2_clipPath24">
<path d="M 56.69362,0 113.38724,113.38724 170.08086,0 Z" id="svg2_path22" />