RESOLVED FIXED 23198
border-image should not be clipped by border-radius
https://bugs.webkit.org/show_bug.cgi?id=23198
Summary border-image should not be clipped by border-radius
Lea Verou
Reported 2009-01-08 15:03:36 PST
Background is not clipped according to border-radius, when border-image is also set. This happens even with a solid color background. For testcase, look at the attached html file (will be uploaded shortly after submission).
Attachments
Testcase for bug #23198 (610 bytes, text/html)
2009-01-08 15:04 PST, Lea Verou
no flags
Patch to stop clipping border-image (52.45 KB, patch)
2009-03-25 09:53 PDT, Dave Hyatt
eric: review+
Lea Verou
Comment 1 2009-01-08 15:04:39 PST
Mark Rowe (bdash)
Comment 2 2009-01-08 16:12:33 PST
Dave Hyatt
Comment 3 2009-03-25 09:08:50 PDT
From the latest draft of the spec: "Backgrounds, but not the border-image, are clipped to the inner, resp., outer curve of the border if ‘background-clip’ is ‘padding-box’ resp., ‘border-box’. Other effects that clip to the border or padding edge (such as ‘overflow’) also must clip to the curve." So what's making this look like a bug to you is that the border-image got incorrectly clipped to the curve. Therefore its 4px corners aren't visible, and it looks like the background is running up too far to the edge.
Dave Hyatt
Comment 4 2009-03-25 09:53:28 PDT
Created attachment 28929 [details] Patch to stop clipping border-image The test case in this bug actually uses a border-image that is purely an alpha component, so even with this change to match the spec, the test case will still look exactly the same (since the underlying background clips to the outer border radius edge).
Eric Seidel (no email)
Comment 5 2009-03-25 10:00:18 PDT
Comment on attachment 28929 [details] Patch to stop clipping border-image So lame. Can't we lobby www-style? The code looks fine, but I prefer the old behavior.
Dave Hyatt
Comment 6 2009-03-25 10:07:57 PDT
Fixed in r41976. I'll continue to complain on www-style.
Note You need to log in before you can comment on or make changes to this bug.