Closed Bug 275800 Opened 20 years ago Closed 20 years ago

[quirks]:hover not understood when no element name is given

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: msaly, Assigned: dbaron)

Details

User-Agent:       Opera/7.60 (Windows NT 5.1; U; en)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Consider this style sheet:
.selector:hover {color: green}

This is not understood by the browser.

When I know the selector class is only used by a certain element, i.e. a DIV, 
then I can rewrite the above line like so:
div.selector:hover {color: green}

But that may not be what I want, because I would have to write this same line 
for every element that could use the "selector" class.

Reproducible: Always

Steps to Reproduce:
1. create an element with class="selector"
2. write a CSS rule for it ".selector:hover {color: green}"
3. hover the mouse over the rendered element.

Actual Results:  
the foreground color stays default

Expected Results:  
the foreground color should become green (when the mouse is over it)
Assignee: firefox → dbaron
Component: General → Style System (CSS)
Product: Firefox → Core
QA Contact: firefox.general → ian
Version: unspecified → Trunk
I assume this is quirks mode only?

If so, it's probably something we're not going to fix because it would break a
significant number of web sites if we did.

Marking wontfix.

See http://www.mozilla.org/docs/web-developer/quirks/
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
Summary: :hover not understood when no element name is given → [quirks]:hover not understood when no element name is given
You need to log in before you can comment on or make changes to this bug.