Open WickyNilliams opened 2 years ago
Why aren't you using the css
tagged template literal?
static styles = css`
@media (min-width: 768px) {
body {
color: red;
}
}
`;
The example given is a reduced test case for illustrative purposes only. I have experienced this issue in tests where I'm writing fixtures, and also cases where you need dynamic styles (as described here https://lit.dev/docs/components/styles/#style-element). So css
doesn't cut it
consider a template like:
lit-plugin reports the following errors:
{ expected lit-plugin(no-invalid-css)
at-rule or selector expected lit-plugin(no-invalid-css)
despite this being valid css