Closed Bug 292071 Opened 20 years ago Closed 20 years ago

Anchor styles is not working in IDs

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: espen.amundsen, Assigned: bugzilla)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2 When anchor is specified inside a ID the styles does not work. And a.hover is only working when its specified inside a class with no id. Reproducible: Always Steps to Reproduce: 1.Create a html file with three layers with id 1 2 and 3 every id with its own anchor specifications 2. Open the HTML in FireFox 1.0.2 3.None of the styles works Actual Results: Bug confirmed Expected Results: The browser should have displayed the CSS according to w3c standards. Anchor styles works outside of IDs. But hover only works when its specified in and accessed with a class.
Can you post an example HTML page of what you're trying to do as an attachment to this bug?
Attachment #181955 - Attachment mime type: text/html → text/plain
Attachment #181955 - Attachment mime type: text/plain → text/html
IDs cannot begin with a number. See: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier *** This bug has been marked as a duplicate of 18936 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Sorry, this does not solve the problem. And a:hover does not work if a:link is defined after it...
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Yes a:link will overwrite a:hover because styles cascade from top to bottom.
Please don't reopen this unles you have a valid testcase. As it is, this is invalid per comment 3 and comment 5.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: