links are underlined even when style dictates otherwise

RESOLVED INVALID

Status

()

Core
DOM: CSS Object Model
--
minor
RESOLVED INVALID
16 years ago
16 years ago

People

(Reporter: Bill Moran, Assigned: jst)

Tracking

Trunk
x86
FreeBSD
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

16 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.3) Gecko/20010914
BuildID:    0000000000

When CSS styles dictate that links are not underlined, Mozilla underlines them
anyway.
There is a setting in the preferences that changes this behaviour, but it seems
that the setting "always use the colors/background specified by the document"
should/could be extended to include underlining of links. Perhaps the wording
should be changed to "always use the colors and layout information provided by
the document" This should be the default.

Reproducible: Always
Steps to Reproduce:
1.Create a page with a style element such as "A {text-decoration:none;}"
2.View the document with "underline links" checked, but "always use document
colors etc" checked 

Actual Results:  Text links were always underlined

Expected Results:  The stylesheet specified that links should only be underlined
when they are hovered over.
The correct behaviour was observed when "underline links" was unchecked.

Comment 1

16 years ago
marking INVALID

The stylesheet on the URL provided uses this CSS selector:
A:link A:visited{text-decoration:none;}

it should be
A:link, A:visited{text-decoration:none;}

I also would recommend using lower case for element names.
This won't make much difference for HTML, but it would make your stylesheets
compatible with XHTML, and any other XML based languages that are case-sensitive.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.