Bug 258125

Summary: clip-path: inset() radii does not render on specific sizes of element, clip-path and radius
Product: WebKit Reporter: Tom Bigelajzen <tombigel>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfulgham, noamraph, noam, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: All   
OS: All   
Attachments:
Description Flags
a simplified usecase where clip-path inset radius does not render none

Description Tom Bigelajzen 2023-06-15 06:09:07 PDT
Created attachment 466698 [details]
a simplified usecase where clip-path inset radius does not render

When using clip-path: inset() with border-radius values, the radius is not rendered on specific cases of element size, radius size and clip-path size.

In the attached code example you can see an element 661px wide and 445px high with "clip-path: inset(11.2923% round 50% 50% 0% 0%)."
The radius of these exact dimensions fails consistently (At least on MacOS 13.2.1 Safari 16.3, Safari Tech Preview 171, and iOS 16.5).

Any change to the width, height, clip-path size or border-radius will "fix" the issue.

Also attached a link to an animated codepen where different element sizes and different radius values "glitch" on different points on the timeline
Comment 1 Tom Bigelajzen 2023-06-15 06:09:35 PDT
Forgot the codepen link: https://codepen.io/tombigel/pen/VwVerrV
Comment 2 Simon Fraser (smfr) 2023-06-15 10:12:06 PDT
Interesting bug, thanks for the report! I can reproduce.
Comment 3 Radar WebKit Bug Importer 2023-06-15 10:12:17 PDT
<rdar://problem/110847266>