[Webkit-unassigned] [Bug 7555] :hover style not applied on hover if its display property is different from original style's
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Thu Apr 20 00:33:33 PDT 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=7555
------- Comment #10 from hyatt at apple.com 2006-04-20 00:33 PDT -------
CSS3 is going to introduce new types of generated content. I believe (and I
could be wrong about this, but it's what I was anticipating) that it is also
going to lift the restriction on pseudo classes occurring after pseudo
elements. This means you will be able to write rules like:
div::before:hover { ... }
In the above example, a RenderObject with no corresponding node gets hovered.
The current code doesn't deal with this anyway, since the hover bit is on
nodes.
But the real reason I used the render tree is that XBL is going to be
introduced at some point and it will produce an altered DOM tree. Walking the
render tree will *just work* with XBL (even in the current code), since
anonymous XBL shadow elements will still have DOM nodes.
Switching to walk the DOM tree instead basically breaks code that has been
future-proofed for XBL, but then again this is a classic example of why relying
too much on the render tree is bad (since render objects can get torn away out
from under you but DOM nodes can't).
--
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list