You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @container style(--dark-mode){...} part is removed, even though I need it for shadow DOM. If I remove &:where(.dark, .dark *) {...}, then I lose support for Light DOM in Firefox and older Chrome and Safari versions.
The issue seems to be in the optimize mechanism, since minify means minify + optimize.
The text was updated successfully, but these errors were encountered:
I first thought that your input CSS is invalid. A container query using style(…) should contain a valid condition and --dark-mode on its own is not. If you provide it the value you want to compare it to.
But according to the spec the value could be omitted and evaluates to true.
As a workaround until the bug is fixed upstream, one thing you can do is change the original implementation with a value.
I have the following tailwind file and I get two different results when I use or not the
--minify
or--optimize
flags.For this HTML:
Without the
--minify
or--optimize
flags, I get:With
--minify
or--optimize
flags, I get:The
@container style(--dark-mode){...}
part is removed, even though I need it for shadow DOM. If I remove&:where(.dark, .dark *) {...}
, then I lose support for Light DOM in Firefox and older Chrome and Safari versions.The issue seems to be in the optimize mechanism, since minify means minify + optimize.
The text was updated successfully, but these errors were encountered: