unocss / unocss

The instant on-demand atomic CSS engine.

Home Page:https://unocss.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

backdrop merging

ameinhardt opened this issue · comments

In WindiCSS, I would combine (light/dark) backdrop filter like backdrop-blur-sm backdrop-brightness-75 dark:backdrop-brightness-125. It works fine in @apply and inline.
In UnoCSS, I noticed that @apply doesn't merge but overwrites all backdrop-* filter of an element. Inline works better, but the dark:backdrop- still overwrites the other backdrop-filters.
Would you elaborate on how the array response with CONTROL_SHORTCUT_NO_MERGE for dynamic rules/shortcuts is (supposed to be) used in these cases?

See overlay example in playground (btw., maybe playground forwards to wrong baseurl / instead of /play ?)

@antfu: would #994 work as a fix for that?

Should be fixed.