I was sort of shocked to learn that tooltips in svg images don't display when an image is part of an html page inside a <img >
tag.
I found a reference with some options; https://stackoverflow.com/a/28917577/8980882. Here <object> </object>
tag can be used. The <iframe> </iframe>
. option seems less nice in my basic testing on chrome and safari.
I am using antora to build documentation and the svg
images have a lot of information in the tooltips to reduce the noise of an image. Here is an example; https://docs.arch2code.org/a2c-docs/latest/exampleArchitecture.html. I have to warn that this link my change or become obsolete over time it is just a sample document setup at this point. The second svg
if you right click and open in a new tab has lots of tool tips.
My question is, is there some css edits that I can make, or supplemental-ui files I can add to my antora setup to get images to be linked via <object>
tags instead of <img>
tags? I also would really like these to use a width of 100% which seems less obvious for <object>
tags.
I am a novice at css, html and antora so this might be easy for someone but very non obvious to me.
These lines of css in the antora-ui might be what can be over-ridden or re-written?
https://gitlab.com/antora/antora-ui-default/-/blob/master/src/css/doc.css#L435-440
I was naively expecting HTML to pass the tool tips up from svg images.
Thank you for any help.