Skip to content

Older browser parsing issue for breakpoints #17020

@SahilKhan30

Description

@SahilKhan30

What version of Tailwind CSS are you using?

v4.0.3

What build tool (or framework if it abstracts the build tool) are you using?

Vite 5.4.11

What version of Node.js are you using?

v20.9.0

What browser are you using?

Chrome (Version 109.0.5414.119)

What operating system are you using?

Ubuntu

Describe your issue

While using tailwind css on older browser, especially on chrome 109 or below versions, the breakpoints like md, sm are not working as intended.

.sm:col-span-12 {
@media (width >= 40rem) {: ;
grid-column: span 12 / span 12;
}: ;
}
above is what's being shown in the developer's inspect mode.
it is adding semi-colon after each line while parsing in the browser, making it invalid property.

On newer version it is being parsed properly and works fine.
.sm:col-span-12 {
@media (width >= 40rem) {
grid-column: span 12 / span 12;
}
}

So, is there any way fix the above issue for older browsers?

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