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)
Tracking
()
VERIFIED
INVALID
People
(Reporter: conorlennon, Assigned: attinasi)
Details
Attachments
(1 file)
|
120 bytes,
text/html
|
Details |
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
| Reporter | ||
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
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
| Assignee | ||
Comment 3•25 years ago
|
||
Confirming and taking for investigation.
Status: UNCONFIRMED → NEW
Component: DOM Level 0 → Style System
Ever confirmed: true
| Assignee | ||
Comment 4•25 years ago
|
||
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
| Assignee | ||
Comment 5•25 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•