Opened 13 years ago

Closed 12 years ago

#2676 closed defect (wontfix)

Tooltip external file CSS issue

Reported by: guest Owned by: bill
Priority: high Milestone:
Component: Widgets Version: 0.4.2
Keywords: tooltip css Cc:
Blocked By: Blocking:

Description

Hi,

Minor tooltip bug. If you have a tooltip loading an external HTML page:

<span dojoType="tooltip" connectId="myElement" href="richpage.html"></span>

...and that external page has a CSS link:

<link rel='stylesheet' href='richstyle.css' type='text/css' media='screen' />

...when the user hovers over "myElement" and the tooltip appears, the CSS in the linked page affects the page myElement is in, rather than the tooltip. So for instance, if richstyle.css defines a background color or font for the body element, it gets applied to the main page rather than the tooltip.
--
T.J. Crowder
tj at crowdersoftware dot com

Attachments (5)

tt_test.html (668 bytes) - added by guest 13 years ago.
Test main page
richpage.html (345 bytes) - added by guest 13 years ago.
The file loaded by the tooltip
richstyle.css (101 bytes) - added by guest 13 years ago.
The CSS file referenced by the tooltip file
before.png (6.4 KB) - added by guest 13 years ago.
Appearance before activating the tooltip
after.png (6.1 KB) - added by guest 13 years ago.
Appearance after activating the tooltip

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by guest

Attachment: tt_test.html added

Test main page

Changed 13 years ago by guest

Attachment: richpage.html added

The file loaded by the tooltip

Changed 13 years ago by guest

Attachment: richstyle.css added

The CSS file referenced by the tooltip file

comment:1 Changed 13 years ago by guest

Tried and verified in FF2 and IE6.
--
T.J. Crowder
tj at crowdersoftware dot com

Changed 13 years ago by guest

Attachment: before.png added

Appearance before activating the tooltip

Changed 13 years ago by guest

Attachment: after.png added

Appearance after activating the tooltip

comment:2 Changed 12 years ago by bill

Resolution: wontfix
Status: newclosed

Right, but this is difficult to fix; actually in 0.9 we just won't be processing CSS declarations as part of ContentPane?.

Note: See TracTickets for help on using tickets.