Solution (Clean Solution)
Date of the Solution
Mon Jul 20 05:38:50 2009
Fixed Versions
all of the affected
Description
I gave you a little hint in bug's description with regard on how to actually fix it - the background property! Here's our fixed demo:
Due to the nature of the bug, the demo is available on a separate page
- HTML Code:
<div><a href="#">Foo</a></div>
- CSS Code:
div {
position: absolute;
top: 0;
left: 0;
width: 600px;
height: 200px;
border: 1px solid #000;
}
a {
display: block;
width: 500px;
padding: 50px;
background: #fff;
/* use background: url(#)
if you need transparent background */
}
a:hover {
background: #ddd;
}
All we need to do is set background on the <a> element in the rule without the :hover pseudo-class. Note that if your link is not clickable on :hover, then you probably need to set background on the a:hover as well.
Special case: if you need to have transparent background on the <a> element, then simply use background: url(#). Whilst this would induce an extra HTTP request, it would solve the bug; use conditional comments if you are really worried about it.