Hello here!
Aside from the #79 issue for which there’s already a PR (#80), there’s no support for @supports nor @container queries.
For example, this @supports rule:
@supports (top: max(0px)) {
.btn {
bottom: max(calc(var(--safe-bottom)), calc(var(--some-var, 10px) - 10px));
left: max(calc(var(--safe-left)), calc(var(--some-var, 10px) - 10px));
}
}
outputs the following CSS
@supports (top: max(0px)) {
.btn {
bottom: max(calc(var(--safe-bottom)), calc(var(--some-var, 10px) - 0.625rem));
left: max(calc(var(--safe-left)), calc(var(--some-var, 10px) - 0.625rem));
}
I haven’t tested container queries, but according to that part of the code, I assume only @media is currently supported.
|
if (opts.mediaQuery && atRule.name === "media") { |
|
if (atRule.params.indexOf("px") === -1) return; |
|
atRule.params = atRule.params.replace(pxRegex, pxReplace); |
|
} |
Hello here!
Aside from the #79 issue for which there’s already a PR (#80), there’s no support for
@supportsnor@containerqueries.For example, this
@supportsrule:outputs the following CSS
I haven’t tested container queries, but according to that part of the code, I assume only
@mediais currently supported.postcss-pxtorem/index.js
Lines 175 to 178 in 1226490