Closed Bug 62863 Opened 24 years ago Closed 24 years ago

Strange underlining behavior

Categories

(Core :: Layout, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: nplatis, Assigned: clayton)

Details

Attachments

(1 file)

The attached file contains two links and some fiddling with styles and mixing tags.
In NS and IE the first link is rendered with no underlining and the second
underlined.
In Mozilla both links are underlined.

Which behavior is correct? Is it related to Bug 1777 ?

(The testcase is adapted from some existing page, which contained only the first
set of HTML tags and appeared undecorated in NS but (uglily) underlined in Mozilla)
Attached file Testcase
This is related to bug 1777 in that this is actually the part of the issue
covered in 1777 that works correctly.  The CSS specification says at
http://www.w3.org/TR/REC-CSS2/text.html#lining-striking-props that the
text-decoration property spans children.  Mozilla's handling is correct -- the
underline of the <a> spans the <strong> and its enclosed text.  IE and Netscape
both handle this wrong.  If someone wants to have no text-decoration on text
inside a link, they need to set "text-decoration:none" on the <a> element
itself.

Marking invalid, since Mozilla is doing what it should be.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
See also bug 10458.
VERIFIED invalid.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: