WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
73068
css :hover doesn't work on initially onscreen absolute positioned divs with negative z-index
https://bugs.webkit.org/show_bug.cgi?id=73068
Summary
css :hover doesn't work on initially onscreen absolute positioned divs with n...
Mike Lawther
Reported
2011-11-23 21:03:34 PST
As reported at
http://code.google.com/p/chromium/issues/detail?id=83533
; An absolutely positioned div with a negative zindex that is initially visible without scrolling doesn't have hover applied to it. ---------- <style> div { width: 50px; height: 50px; position: absolute; background-color: blue; z-index: -1; } div:hover { background-color:green; } </style> <div style="top: 200px;"></div> <div style="top: 400px;"></div> <div style="top: 600px;"></div> <div style="top: 800px;"></div> ------------ In the above testcase, any div that is initially offscreen (ie requiring scrolling) will correctly turn green on hover. The ones that are initially onscreen don't. Note you need to load this directly - pasting into something like jsfiddle.net does not repro the problem. Browsers Tested (MacOS): - WebKit Nightly
r101106
: BAD - Firefox 8.0 : OK - Opera 11.52: OK
Attachments
Testcase
(303 bytes, text/html)
2011-11-28 11:41 PST
,
Simon Fraser (smfr)
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2011-11-24 12:52:09 PST
See also:
bug 25943
.
Simon Fraser (smfr)
Comment 2
2011-11-28 11:41:32 PST
Created
attachment 116794
[details]
Testcase
Brent Fulgham
Comment 3
2022-07-11 16:47:48 PDT
This continues to be an issue in 2022. Blink and WebKit have the same (broken) behavior.
Radar WebKit Bug Importer
Comment 4
2022-07-11 16:47:58 PDT
<
rdar://problem/96850674
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug