Skip to content

Tailwind 4.1 oklch colors don't work on old safary if decimal is provided instead of percentage. #18081

Closed
@entrenadorhispano

Description

@entrenadorhispano

Subtle bug using safari 15.8
Tailwind 4.1 oklch colors don't work on old safary if decimal is provided instead of percentage.

oklch(70% 0.15 162) This will work ✅
oklch(0.70 0.15 162) This won't ❌

System
Using Vite (svelte) + Tailwind 4.1.7 + node 22.14

Reproduction sample:
https://play.tailwindcss.com/fPW5BsNPNT

Note
Using decimal for lightness oklch(0.70 0.15 162) works on safari 15.8 plain css... So its seems to be a tailwind bug.

Thanks fort the support!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions