Reviewed by Maciej.
http://bugzilla.opendarwin.org/show_bug.cgi?id=9738
Bug 9738: Unqualified :hover selector ignored in strict parsing mode
* fast/selectors/unqualified-hover-quirks-expected.checksum: Added.
* fast/selectors/unqualified-hover-quirks-expected.png: Added.
* fast/selectors/unqualified-hover-quirks-expected.txt: Added.
* fast/selectors/unqualified-hover-quirks.html: Added.
* fast/selectors/unqualified-hover-strict-expected.checksum: Added.
* fast/selectors/unqualified-hover-strict-expected.png: Added.
* fast/selectors/unqualified-hover-strict-expected.txt: Added.
* fast/selectors/unqualified-hover-strict.html: Added.
WebCore:
Reviewed by Maciej.
http://bugzilla.opendarwin.org/show_bug.cgi?id=9738
Bug 9738: Unqualified :hover selector ignored in strict parsing mode
* css/cssstyleselector.cpp:
(WebCore::CSSStyleSelector::checkSelector): Restrict the :hover and :active
exclusion based on onlyHoverActive to quirks mode.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15727
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-07-31 Mark Rowe <opendarwin.org@bdash.net.nz>
+
+ Reviewed by Maciej.
+
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=9738
+ Bug 9738: Unqualified :hover selector ignored in strict parsing mode
+
+ * fast/selectors/unqualified-hover-quirks-expected.checksum: Added.
+ * fast/selectors/unqualified-hover-quirks-expected.png: Added.
+ * fast/selectors/unqualified-hover-quirks-expected.txt: Added.
+ * fast/selectors/unqualified-hover-quirks.html: Added.
+ * fast/selectors/unqualified-hover-strict-expected.checksum: Added.
+ * fast/selectors/unqualified-hover-strict-expected.png: Added.
+ * fast/selectors/unqualified-hover-strict-expected.txt: Added.
+ * fast/selectors/unqualified-hover-strict.html: Added.
+
2006-07-31 Adele Peterson <adele@apple.com>
Reviewed by John and Anders.
--- /dev/null
+8445465d29f4df0132be070ab12a6aee
+\ No newline at end of file
--- /dev/null
+layer at (0,0) size 800x600
+ RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (8,8) size 784x576
+ RenderBlock {H3} at (0,0) size 784x22
+ RenderText {#text} at (0,0) size 468x22
+ text run at (0,0) width 468: "Test of unqualifed :hover selector in quirks parsing mode"
+ RenderBlock {P} at (0,40) size 784x18
+ RenderText {#text} at (0,0) size 616x18
+ text run at (0,0) width 616: "Moving the mouse anywhere over the document should result no change to the background color."
--- /dev/null
+<html>
+ <head>
+ <style type='text/css'>
+ :hover { background-color: #666; }
+ </style>
+
+ <script type="text/javascript">
+ function test()
+ {
+ if (!window.eventSender)
+ return;
+
+ document.body.offsetTop; // Force layout. The mouse is not tracked before first layout.
+ eventSender.mouseMoveTo(16, 16); // Hover.
+ document.body.offsetTop; // Update layout for hovered state.
+ }
+ </script>
+ </head>
+ <body onload="test()">
+ <h3>Test of unqualifed :hover selector in quirks parsing mode</h3>
+
+ <p>Moving the mouse anywhere over the document should result no change to the background color.</p>
+ </body>
+</html>
--- /dev/null
+a6055b5382b4cfdaf22d493ea46da84a
+\ No newline at end of file
--- /dev/null
+layer at (0,0) size 800x600
+ RenderView at (0,0) size 800x600
+layer at (0,0) size 800x92
+ RenderBlock {HTML} at (0,0) size 800x92 [bgcolor=#666666]
+ RenderBody {BODY} at (8,18) size 784x58
+ RenderBlock {H3} at (0,0) size 784x22
+ RenderText {#text} at (0,0) size 455x22
+ text run at (0,0) width 455: "Test of unqualifed :hover selector in strict parsing mode"
+ RenderBlock {P} at (0,40) size 784x18
+ RenderText {#text} at (0,0) size 691x18
+ text run at (0,0) width 691: "Moving the mouse anywhere over the document should result in the background color being changed to grey."
--- /dev/null
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <style type='text/css'>
+ :hover { background-color: #666; }
+ </style>
+
+ <script type="text/javascript">
+ function test()
+ {
+ if (!window.eventSender)
+ return;
+
+ document.body.offsetTop; // Force layout. The mouse is not tracked before first layout.
+ eventSender.mouseMoveTo(16, 16); // Hover.
+ document.body.offsetTop; // Update layout for hovered state.
+ }
+ </script>
+ </head>
+ <body onload="test()">
+ <h3>Test of unqualifed :hover selector in strict parsing mode</h3>
+
+ <p>Moving the mouse anywhere over the document should result in the background color being changed to grey.</p>
+ </body>
+</html>
+2006-07-31 Mark Rowe <opendarwin.org@bdash.net.nz>
+
+ Reviewed by Maciej.
+
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=9738
+ Bug 9738: Unqualified :hover selector ignored in strict parsing mode
+
+ * css/cssstyleselector.cpp:
+ (WebCore::CSSStyleSelector::checkSelector): Restrict the :hover and :active
+ exclusion based on onlyHoverActive to quirks mode.
+
2006-07-31 David Hyatt <hyatt@apple.com>
Fix for bug 10179, digg.com scrolls slowly. Improve fixed positioning
return false;
// disallow *:hover, *:active, and *:hover:active except for links
- if (onlyHoverActive && subject) {
+ if (!strictParsing && onlyHoverActive && subject) {
if (pseudoState == PseudoUnknown)
checkPseudoState(e);