-
This is a weird inconveniece I've encountered. When styles are included in a component model definion and a rule contains editor.DomComponents.addType(...
model:
...
defaults:
...
styles: `
.myRuleA {
background: red; // works fine
}
.myRuleB {
background: var(--my-primary); // ommited
}
.myRuleC {
background-color: var(--my-primary); // works fine
}
`
|
Beta Was this translation helpful? Give feedback.
Answered by
artf
Feb 8, 2022
Replies: 1 comment 4 replies
-
Yeah in Chrome I see the .myRuleB {
background-image: ;
background-position-x: ;
background-position-y: ;
background-size: ;
background-repeat-x: ;
background-repeat-y: ;
background-attachment: ;
background-origin: ;
background-clip: ;
background-color: ;
} Did you try already https://github.com/artf/grapesjs-parser-postcss? |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
lofcz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah in Chrome I see the
.myRuleB
parsed in:Did you try already https://github.com/artf/grapesjs-parser-postcss?