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
And the problem is that custom properties are not converted corectly.
This should be result, but the css is not processed. It only works when I add <!-- postcss-disable --> before body or if I change the image to text inside the td.
<style>:root {
--blue: blue
}
bodytd {
color: blue
;
color:var(--blue)
}
@media all and (max-width:600px) {
body {
color: red;
}
}
</style>
Am I missing something in config or is this a bug? Anyway for my usecase I can add the disable comment and that fixes my problem, but seems hacky.
The text was updated successfully, but these errors were encountered:
Hmm. postcss-custom-properties doesn't seem to support Document node. https://postcss.org/api/#document
To fix the problem, you should ask them to fix the postcss-custom-properties. However, document nodes are an experimental feature and maintainers may reject changes.
ota-meshi
changed the title
issue with html parsing
issue when used with postcss-custom-properties
Aug 29, 2022
I have an issue with html parsing and postcss-custom-properties. I have the following code
And the problem is that custom properties are not converted corectly.
This should be result, but the css is not processed. It only works when I add
<!-- postcss-disable -->
before body or if I change the image to text inside the td.Am I missing something in config or is this a bug? Anyway for my usecase I can add the disable comment and that fixes my problem, but seems hacky.
The text was updated successfully, but these errors were encountered: