Skip to content

Safari not support truely the breakpoints ! (you should use min-width not width > or <) #17185

@abolraj

Description

@abolraj

in tailwind 4 the breakpoints handle this way:

Breakpoint prefix Minimum width CSS
sm 40rem (640px)

@media (width >= 40rem) { ... }

md 48rem (768px)

@media (width >= 48rem) { ... }

lg 64rem (1024px)

@media (width >= 64rem) { ... }

xl 80rem (1280px)

@media (width >= 80rem) { ... }

2xl 96rem (1536px)

@media (width >= 96rem) { ... }

but these media query works just on iphone safari 16.4 to up !

it must be such this (such as past tailwind version (3)):

@media (min-width: 640px) { ... }

how to handle these?!

but i do not know how to fix this entirely in tailwind!

TailwindCSS v4.0.6

Vite 6.1.0

Node v20.0.0

Safari v15

IOS

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