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)

x86
Windows 98
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: development, Assigned: pierre)

References

Details

Attachments

(1 file)

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.
Attached file testcase
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>
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)
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....
thx for the last comment boris...
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
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
*** Bug 70896 has been marked as a duplicate of this bug. ***
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: