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
With a css file containing a margin-at-rule, like so:
@page {
@top-left {
content:"Anything";
}
}
Attempting to minify with a target that doesn't support CSS nesting, for example .\node_modules\.bin\esbuild .\test.css --minify --target=chrome87
Results in a warning
▲ [WARNING] CSS nesting syntax is not supported in the configured target environment ("chrome87") [unsupported-css-nesting]
test.css:2:1:
2 │ @top-left {
╵ ~~~~~~~~~
Support for this particular nesting predates CSS nesting by quite a bit: MDN Docs
The output generated appears to be fine, in the above example the result is @page{@top-left{content:"Anything"}} but is there anything that can be done about the warning?
The text was updated successfully, but these errors were encountered:
PHoltom-Sequiter
changed the title
css-minfier: An [unsupported-css-nesting] warning is displayed for @page margin-at-rules when the target doesn't support CSS nesting
css-minifier: An [unsupported-css-nesting] warning is displayed for @page margin-at-rules when the target doesn't support CSS nesting
Jun 26, 2023
With a css file containing a margin-at-rule, like so:
Attempting to minify with a target that doesn't support CSS nesting, for example
.\node_modules\.bin\esbuild .\test.css --minify --target=chrome87
Results in a warning
Support for this particular nesting predates CSS nesting by quite a bit: MDN Docs
The output generated appears to be fine, in the above example the result is
@page{@top-left{content:"Anything"}}
but is there anything that can be done about the warning?The text was updated successfully, but these errors were encountered: