Closed
Bug 59183
Opened 25 years ago
Closed 25 years ago
mozilla ignores text-decoration inside a link.
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: development, Assigned: pierre)
References
Details
Attachments
(1 file)
|
640 bytes,
text/html
|
Details |
if i have a html construct like this
<a href="#"><b style="text-decoration:none">any link</b></a>
mozilla will always underline "any link", this might be dup, but i could not
find it in mozilla.
ie4x and opera4 display it with no underline.
Tested with Mozilla/5.0 (Windows; U; Win98; en-US; m18) Gecko/20001104.
| Reporter | ||
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
ie4x and opera4 are wrong. From http://www.w3.org/TR/REC-CSS1#text-decoration:
This property is not inherited, but elements should match their parent. E.g., if
an element is underlined, the line should span the child elements. The color of
the underlining will remain the same even if descendant elements have different
'color' values.
Therefore, all children of an <a> element that is underlined should be underlined.
To get the behavior you want, set the text-decoration property on the <a>
element itself:
<a href="#" style="text-decoration:none"><b>any link</b></a>
| Reporter | ||
Comment 3•25 years ago
|
||
all you wrote is correct, but the spec is not 100% clear in this case.
the reason why i posted this report was, i checked my hotmail account, and
there are a lot of this html constructs on that page. (... and the page looked
like s**t)
Comment 4•25 years ago
|
||
Please see the comments on bug 52767, bug 27245, and bug 11377
They all talk about the problem, some in a bit more depth. It seems that CSS2
specifies things a little more clearly at
http://www.w3.org/TR/REC-CSS2/text.html#propdef-text-decoration.
Based on those, this bug is invalid, and you may want to contact Hotmail and
tell them that their CSS is broken....
| Reporter | ||
Comment 5•25 years ago
|
||
thx for the last comment boris...
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Comment 6•25 years ago
|
||
Netscape's standard compliance QA team reorganised itself once again, so taking
remaining non-tables style bugs. Sorry about the spam. I tried to get this done
directly at the database level, but apparently that is "not easy because of the
shadow db", "plus it screws up the audit trail", so no can do...
QA Contact: chrisd → ian
You need to log in
before you can comment on or make changes to this bug.
Description
•