We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 098799f commit 548bb4aCopy full SHA for 548bb4a
src/parser_stylesheet.cpp
@@ -399,10 +399,18 @@ namespace Sass {
399
EnvFrame local(context.varStack, false);
400
401
Offset start(scanner.offset);
402
- return withChildren<StyleRule>(
+ StyleRuleObj styles = withChildren<StyleRule>(
403
&StylesheetParser::readChildStatement,
404
start, readStyleRule.ptr(), local.idxs);
405
406
+ if (isIndented() && styles->empty()) {
407
+ context.addWarning(
408
+ "This selector doesn't have any properties and won't be rendered.",
409
+ itpl->pstate());
410
+ }
411
+
412
+ return styles.detach();
413
414
}
415
// EO readStyleRule
416
0 commit comments