Closed Bug 137395 Opened 18 years ago Closed 18 years ago

event state changes don't work when state selector not on subject [SELECTORS-DYNAMIC]

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set

Tracking

()

VERIFIED INVALID

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(1 file, 1 obsolete file)

The HasStateDependentStyle optimization prevents event state selectors from
working on any element that is not the subject of the relevant selector.  See
bug 137247 comment 5, bug 5693 comment 161, and bug 75559.
See also bug 15608, which used to cover both this problem and another problem.
Attached file testcase (obsolete) —
This tests both ">" and "+" combinators.
Attached file corrected testcase
Oops.  Fixed a small error.

Note that the first of the two testcases here is also affected by bug 15608. 
Also note that putting :link:hover, :visited:hover { background: yellow; } in
your userContent.css (as I have) should make this go away.
Attachment #79159 - Attachment is obsolete: true
Hmmm.  Maybe I'm going crazy and this isn't a bug?
Never mind.  I'm going crazy.  This isn't a bug, because we build
mStateSelectors specially for this case.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
I added some comments describing what I misunderstood to the patch in bug 128743.
rubber stamp VERIFIED since reporter invalidated
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.