Closed Bug 110972 Opened 23 years ago Closed 22 years ago

we are not correctly re-resolving style when a dynamic change to the document affects a style rule with a + combinator [SELECTORS-DYNAMIC] (:hover +)

Categories

(Core :: CSS Parsing and Computation, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 15608
mozilla1.0.1

People

(Reporter: timeless, Assigned: glazou)

References

()

Details

Win32 2001111903. This testcase was developed w/ QNX and FreeBSD vers of mozilla
os:all.

<Hixie> i think the bug is that we are not correctly re-resolving style when a
dynamic change to the document affects a style rule with a + combinator. This is
a known bug but does not appear to be filed (at least, I couldn't find it).

To verify that + rules work, manually change the url to have <q hidden="true"
id="a">.

Steps to see problem,
1. load the testcase url (and optionally the alternate form in another window)
observe either "1" or "2" are shown
2. mouse over A
expect to see "2" and not to see "1"
3. mouse over B
expect to see "1" and not to see "2"

actual results (for url)
2. neither "1" nor "2" are shown
3. "1" is shown

actual results (for modified url)
2. "2" is shown
3. both "1" and "2" are shown

This would be fun to look at w/ document inspector.
Known issue with a significant performance hit to fix.  We have similar problems
with :empty and other selectors.  We might need to remember when we have such
selectors so we can resolve style on parents / siblings when there is a
AttributeChanged, etc., on an element.

->glazman, since he owns the bug on :empty, IIRC.
Assignee: dbaron → glazman
milstone bulk change
Target Milestone: --- → mozilla1.0.1
Summary: we are not correctly re-resolving style when a dynamic change to the document affects a style rule with a + combinator → we are not correctly re-resolving style when a dynamic change to the document affects a style rule with a + combinator [SELECTORS-DYNAMIC]
Summary: we are not correctly re-resolving style when a dynamic change to the document affects a style rule with a + combinator [SELECTORS-DYNAMIC] → we are not correctly re-resolving style when a dynamic change to the document affects a style rule with a + combinator [SELECTORS-DYNAMIC] (:hover +)
Isn't this a dupe of bug 15608?

*** This bug has been marked as a duplicate of 15608 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
vrfy dupe
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.