[Webkit-unassigned] [Bug 76137] Borders and box masks behave incorrectly with overlapping offsets

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 11 20:22:45 PST 2012


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





--- Comment #1 from Ian Henderson <ianh at apple.com>  2012-01-11 20:22:44 PST ---
(In reply to comment #0)
> It seems like we should do what it says at <http://www.w3.org/TR/css3-background/#border-image-width>:
> If two opposite ‘border-image-width’ offsets are large enough that they overlap, then the used values of all ‘border-image-width’ offsets are proportionally reduced until they no longer overlap. In mathematical notation: Given Lwidth as the width of the border image area, Lheight as its height, and Wside as the border image width offset for the side side, let f = min(Lwidth/(Wleft+Wright), Lheight/(Wtop+Wbottom)). If f < 1, then all W are reduced by multiplying them by f.

Looking at the code, we already make this correction, but it's not enough to ensure there's at least one pixel in the middle to stretch.

-- 
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