From 964f2e45fa4d16a3a32e52b4cc56006dde030097 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Fri, 16 Aug 2024 14:47:10 -0700 Subject: [PATCH] Add tests for an empty `@at-root` rule in the indented syntax --- spec/directives/at_root.hrx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/spec/directives/at_root.hrx b/spec/directives/at_root.hrx index ddef1f01e..bcd185bda 100644 --- a/spec/directives/at_root.hrx +++ b/spec/directives/at_root.hrx @@ -1,3 +1,32 @@ +<===> sass/empty/no_query/input.sass +@at-root + +<===> sass/empty/no_query/output.css + +<===> +================================================================================ +<===> sass/empty/query/input.sass +@at-root (with: rule) + +<===> sass/empty/query/output.css + +<===> +================================================================================ +<===> sass/empty/selector/input.sass +@at-root a + +<===> sass/empty/selector/output.css + +<===> sass/empty/selector/warning +WARNING on line 1, column 10 of input.sass: +This selector doesn't have any properties and won't be rendered. + , +1 | @at-root a + | ^ + ' + +<===> +================================================================================ <===> keyframes/all/input.scss @keyframes a { @at-root (without: all) {