-
Notifications
You must be signed in to change notification settings - Fork 77
Overriding custom properties not supported #173
Comments
Hi, without a DOM, PostCSS can't replicate 100% of the custom properties behaviour, so it's limited to declarations on the There used to be a warning (under an option) as well, but it was also removed. Personally when I use cascading custom properties like in your example, I tend to had a fallback by hand, when it make sense. |
Could it be simulated to at least look in the context of the block it's in or the same selector for overrides? |
Could we (ab)use the fallback mechanism, like this:
? |
I suppose one way to resolve this is to transpile
to, assuming
so if there were |
According to W3C reference, custom properties can be overridden by more specific selectors.
Example:
Expected:
Current behavior:
I also created a failing test case for this.
The text was updated successfully, but these errors were encountered: