Closed Bug 303564 Opened 19 years ago Closed 19 years ago

a {border: 1px solid gray} img a, img a {border: 0} still results in border round image

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mvl22, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

See testcase.

Stylesheet instructs links to have a bottom border:
a {border: 1px solid gray}

but NOT to have a border when the image is around an image
img a, img a {border: 0;}

Yet firefox still adds the border.


Reproducible: Always

Steps to Reproduce:
1. Load the webpage above and view.
Actual Results:  
Border appears under the image.

Expected Results:  
Border (under the image) should not appear.
The description above says "img a, img a" which is just needless repetition.
I assume what you meant to write was "img a, a img" (which is what your test
case has.

"img a" does not apply (because your testcase does not have an <a> element
nested inside an <img> element).

"a img" does apply - but to the <img>, not to the <a>! So the image has a
"border: 0", but the <a> surrounding it still has a gray border, which is what
you see.

Therefore this bug report is invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.