WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
24504
webkitBoxShadow drawing is goofy for absolutely positioned elements
https://bugs.webkit.org/show_bug.cgi?id=24504
Summary
webkitBoxShadow drawing is goofy for absolutely positioned elements
Cabel Sasser
Reported
2009-03-10 16:51:47 PDT
A little drawing bug for Safari 4 (5528.16) -- and oh how I pray it's not a duplicate! Using Javascript and webkitBoxShadow to dynamically set a shadow on an image (or element) causes some curious drawing problems. These problems do not exist in Safari 3. Steps to Reproduce: Use document.getElementById(element).style.webkitBoxShadow in Javascript to set a shadow property onto an element that is absolutely positioned. Expected Results: Shadow draws correctly. Actual Results: At first, the shadow does not appear to draw at all. But if the user clicks outside the window (and it loses focus), the shadow will draw. Or if the user selects text underneath the element, or scrolls the page, the shadow will draw. Notes: See URL for reproducible example. When clicking the second link, nothing appears to happen initially, but shadow will appear if you mess around with the window. Example works in Safari 3.
Attachments
Add attachment
proposed patch, testcase, etc.
David Smith
Comment 1
2009-03-10 17:03:11 PDT
This appears to work in trunk as of
r41545
. Can you reproduce the issue in a nightly build (nightly.webkit.org)?
Cabel Sasser
Comment 2
2009-03-10 17:08:30 PDT
Confirmed: it works in the nightly. Thanks for catching that. I'll look forward to Safari 4 Beta 2! :) Long time user, first time bug filer: should I resolve this myself? WORKSFORME?
Jeremy Dentel
Comment 3
2009-03-10 17:09:17 PDT
I can confirm this. :)
David Smith
Comment 4
2009-03-10 17:14:49 PDT
Thanks for confirming that it's fixed :) I forget what the policy is on people closing bugs they filed, it's probably fine.
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