在查看Sass Change Log的最新更新后,我对新的content exists功能非常兴奋 .

我正在使用their own example,它没有尝试过以下内容......

@mixin check-for-content {
  @if content-exists() { background:green; }
  @if not content-exists() { background:red; }
  @content;
}

body {
  background:blue;
  @include check-for-content;
  //@include check-for-content { test:block };
}

如果我传递参数,添加块,不添加块,添加空块等等都无关紧要......它总是认为content-exists()是真的(并给我一个绿色背景) .

我错过了什么吗?除了Sass之外,我还需要在本地更新任何其他内容吗?