Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SVG inside Mozilla/XUL app: title/tooltip is not displayed

7 views
Skip to first unread message

plind...@gmail.com

unread,
Jan 12, 2016, 7:59:46 AM1/12/16
to
(cross posted at http://stackoverflow.com/questions/34741730 )

I wrote a xul application where a SVG fragment is embedded in a XUL element.

(...)
<scrollbox style='overflow:auto;' flex="1" pack="center">
<svg:svg version="1.1" baseProfile="full" width="100" height="100" id="drawingArea">
<svg:rect width="100" height="100" style="fill:red;" title="hello"/>
</svg:svg>
</scrollbox>
(...)




I wrote a xul application where a SVG fragment is embedded in a XUL element.

(...)
<scrollbox style='overflow:auto;' flex="1" pack="center">
<svg:svg version="1.1" baseProfile="full" width="100" height="100" id="drawingArea">
<svg:rect width="100" height="100" style="fill:red;" title="hello"/>
</svg:svg>
</scrollbox>
(...)

The image is displayed but the tooltip 'Hello' is not displayed on mouseover. I also tried to add a child <svg:title> and to wrap the svg:svg inside a html:div.

With the standalone svg file:

<?xml version="1.0"?>
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="10" height="2000" id="drawingArea">
<svg:rect width="100" height="100" style="fill:red;" title="xxx"/>
</svg:svg>

the tooltip is displayed in firefox.

Is there a way to show those tooltips in xul ?

0 new messages