[Webkit-unassigned] [Bug 49726] New: box-shadow radii stays the same regardless of any spread set

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 18 05:12:20 PST 2010


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

           Summary: box-shadow radii stays the same regardless of any
                    spread set
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://jsfiddle.net/leaverou/XmK8J/
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: me at leaverou.me


>From Backgrounds & Borders: (http://www.w3.org/TR/2010/WD-css3-background-20100612/#the-box-shadow)
"If a spread distance is defined, the shadow is expanded outward or contracted inward by an operation equivalent to applying twice the absolute value of the spread value to a blur operation as defined below and thresholding the result such that for a positive spread distance all non-transparent pixels are given the full shadow color and for a negative spread distance all non-opaque pixels are made transparent. The UA may approximate this operation by taking an outward outset of the specified amount normal to the original shadow perimeter. Alternatively the UA may approximate the transformed shadow perimeter shape by outsetting (insetting, for inner shadows) the shadow's straight edges by the spread distance and increasing (decreasing, for inner shadows) and flooring at zero the corner radii by the same amount. (The UA may even combine these methods, using one method for outer shadows and another for inner ones.)"

In Gecko & Presto the corner radii is adjusted accordingly. In Webkit, it stays the same as the radii of the outer edge of the border. This only happens with outset shadows, as you can see in the 3rd div, inset shadows are rendered just fine.

(Originally discovered by David DeSandro, although I did a search and I don't think there's another bug report on this.)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list