[Webkit-unassigned] [Bug 24504] New: Javascript-set webkitBoxShadow drawing is goofy for absolutely positioned elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 10 16:51:47 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=24504

           Summary: Javascript-set webkitBoxShadow drawing is goofy for
                    absolutely positioned elements
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
               URL: http://cabel.name/webkit-bug1.html
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: cabel at panic.com


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.


-- 
Configure bugmail: https://bugs.webkit.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