Closed Bug 308477 Opened 19 years ago Closed 19 years ago

CSS border elements do not render as w3c standards designate.

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 208283

People

(Reporter: firefox, Unassigned)

Details

Attachments

(1 file)

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

This:
// css document:
a:link
{
 border-bottom: 1px dotted black;
 text-decoration: none;
}
a img
{
 border: 0;
}
// end css document
should render 
<a href="foo"></a> 
with dotted lines underneath and should render
<a href="foo"><img src="bar"></img></a>
without dotted lines underneath.

Firefox does not do this, instead it renders all links including img links with
dotted lines.


Reproducible: Always

Steps to Reproduce:
Code up a simple page with the external css document I included, and let it rip.

Actual Results:  
little dotted lines everywhere there is a link

Expected Results:  
little dotted lines under all links EXCEPT for images inside links.
Attached file Reporter's testcase
This works for me. The dotted borders appear only under the links. They do
appear under the link with the image in it because they should, the border is
on the link and the style rule specifies that the image should have no border.
Exactly the same as bug 208283.

*** This bug has been marked as a duplicate of 208283 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: