Closed drzraf closed 5 years ago
Would you update your copy of the plugin? You are probably using an old version. This plugin doesn’t do anything like that anymore. I had the same issues before I started maintaining this.
Indeed. I had postcss-cssnext
in my deps' which bundled an additional (outdated)
version postcss-custom-properties which, sadly, was the one in use when
running postcss.
I updated to postcss-preset-env and it now runs like a charm.
thx
According to specification:
I use this CSS trick
In combination with:
<div style="--aspect-ratio:1">
But
postcss-custom-properties
then issues this warnings:Defining a default value, whether from
:root
, frompostcss.config.js
or usingvar()
's second argument is not a solution because I want to preserver the expression as-is in the final CSS but just avoid this warning.