Skip to content

Using 0 as arbitrary value doesn't work for for some properties #6227

@arzatskis

Description

@arzatskis

What version of Tailwind CSS are you using?

v2.2.19

Reproduction URL

https://play.tailwindcss.com/eOQOc2klvH

Describe your issue

Trying to apply custom value as 0 for border width Tailwind JIT doesn't generate the selector. E.g. using border-[0] does nothing, even though border-width: 0 is valid CSS expression. Same for font size with text-[0] (font-size: 0 is valid CSS). Haven't checked other properties.

This doesn't happen and when applying w-[0] - selector / style is applied as expected.

Screen Shot 2021-12-01 at 11 44 19

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