sprites followed by 'invisible-link' do not appear in WebKit browsers
Bug #597819 reported by
Brad Crittenden
This bug report is a duplicate of:
Bug #393825: Icons missing from bug listings in WebKit and KHTML.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
New
|
Undecided
|
Unassigned |
Bug Description
While fixing bug 595907, I discovered using the following code *sometimes* does not work in WebKit browsers (though works fine in Firefox):
<a target="help" href="/
class="sprite maybe"><span class="
It works sometimes because the code shown above works fine in WebKit for the product index page. Similar code to display a pop-up help (?) icon for bug tags does not work.
The branch linked to the referenced bug demonstrates the problem.
Changed in launchpad-web: | |
assignee: | nobody → Curtis Hovey (sinzui) |
Changed in launchpad: | |
assignee: | Curtis Hovey (sinzui) → nobody |
To post a comment you must log in.
This is also the same issues as bug 399491, bug 434093, bug 520659. I beleive you are familar with two of them.
This is the zero-width problem. My fix to the formatters was to ensure there is always a space in the link.
ObjectImageDisp layAPI. boolean s"> <span class=" invisible- link">% (icon)s< /span>< /span>
<span class="sprite %(icon)
Note that we always want to place an before the invisible-link element, or in the anchor if it is being left empty.