Skip to content

var(--tw-empty,/*!*/ /*!*/) could be wrongly processed by externals preprocessors #2889

@hanoii

Description

@hanoii

While not a bug per se of tailwind, I did want to flag this and I wonder if there's not a better way of doing this.

I am using Drupal that has an option to preprocess css files. It seems that as part of that process comments are removed.

This leaves something like

--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);

as

--tw-ring-inset: var(--tw-empty,);

Which shows as invalid to chrome and breaks the ring functionality (no rings shown).

I am sure there's a reason for that choice of empty default value but I wonder if something less prone to something like this can be used.

For now I flagged the css of my theme (which is already preprocessed anyway) from being further processed by Drupal and this made it work. But wanted to raise this up for consideration.

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