Skip to content

Ring in combination with radius and offsets renders wrong in Safari #17959

Open
@roydigerhund

Description

@roydigerhund

What version of Tailwind CSS are you using?

For example: v4.1.6

What browser are you using?

Safari 18.4 (20621.1.15.11.10)

What operating system are you using?

macOS 15.4.1 (24E263)

Reproduction URL

https://play.tailwindcss.com/Xbgvqjl0sg

Describe your issue

In Safari (Chrome and FF rendered correctly) when using the ring utility with ring-offset on an element with rounded corners, the rounded corners of the resulting box-shadow are rendered with a "dent".

It does not happen when using the offset utility, this way it can be used as a comparison.
The following screenshot shows the render bug on the left element.

Image

Possible solutions

  1. If the reason to use box-shadow instead of outline for the ring utility was the missing support for rounded elements, Tailwind could go back to outline because rounded elements are now supported.

  2. File a bug report for Safari. I haven't had a lot of success in the past with this, maybe it's quicker when someone from the Tailwind Labs team does it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions