Closed Bug 52767 Opened 25 years ago Closed 25 years ago

text-decoration value is not inherited from font-tag to anchor

Categories

(Core :: CSS Parsing and Computation, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: conorlennon, Assigned: attinasi)

Details

Attachments

(1 file)

In build 2000091408 the html snippet <html> <body> <a href="Link"> <font style="text-decoration: none;" size="2"> Link </font> </a> </body> </html> produces a link that is underlined. I would expect that the link would inherit the text-decoration value from the font, and would not be underlined. The link is not underlined in Netscape 4 or IE 5
Mark, could you have a look into this? This is not a DOM problem.
Assignee: jst → attinasi
Summary: text-decoration value is not used in links → text-decoration value is not used in links
Confirming and taking for investigation.
Status: UNCONFIRMED → NEW
Component: DOM Level 0 → Style System
Ever confirmed: true
If you put the style on the A it works fine, so the real problem is with the inheritance from the style on the font tag. Style tags are treated specially, so I have to review the rules for how their values cascade. Updating summary to be more specific. BTW: this markup gives you what you want here: <html> <body> <a href="Link" style="text-decoration: none;"> <font size="2"> Link </font> </a> </body> </html>
Status: NEW → ASSIGNED
Summary: text-decoration value is not used in links → text-decoration value is not inherited from font-tag to anchor
After re-reading the spec I think that this is INVALID: i.e. the text-decoration should not be inherited from the FONT tag. Here is the source from which I base this belief: http://www.w3.org/TR/REC-CSS2/text.html#propdef-text-decoration The way I read it, the FONT element, as an inline, should apply the text-decoration to the boxes it generates only, and since the TEXT is not one of the boxes it generates it is effectively ignored. Note that this property is not inherited per se, but is applied according to the rules spelled out in the above linked sectio of the CSS2 spec. Marking INVALID until somebody educates me otherwise.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Correct. See also bug 1777.
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: