Closed
Bug 137395
Opened 22 years ago
Closed 22 years ago
event state changes don't work when state selector not on subject [SELECTORS-DYNAMIC]
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
VERIFIED
INVALID
People
(Reporter: dbaron, Assigned: dbaron)
Details
Attachments
(1 file, 1 obsolete file)
840 bytes,
text/html
|
Details |
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.
Assignee | ||
Comment 1•22 years ago
|
||
See also bug 15608, which used to cover both this problem and another problem.
Assignee | ||
Comment 2•22 years ago
|
||
This tests both ">" and "+" combinators.
Assignee | ||
Comment 3•22 years ago
|
||
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
Assignee | ||
Comment 4•22 years ago
|
||
Hmmm. Maybe I'm going crazy and this isn't a bug?
Assignee | ||
Comment 5•22 years ago
|
||
Never mind. I'm going crazy. This isn't a bug, because we build mStateSelectors specially for this case.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Assignee | ||
Comment 6•22 years ago
|
||
I added some comments describing what I misunderstood to the patch in bug 128743.
Comment 7•22 years ago
|
||
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.
Description
•