This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Description
I get this error if the function content-exists() is in the mixin, whether or not the mixin is invoked.
input.scss
@mixin test-content-exists() {
@if content-exists() {
@content;
}
@else {
content: missing;
}
}
.foo {
@include test-content-exists();
}
.bar {
@include test-content-exists() {
content: present;
}
}
Actual results
libsass 3.5.2
Cannot call content-exists() except within a mixin. on line 2 at column 7
Expected result
ruby sass 3.5.6
.foo {
content: missing;
}
.bar {
content: present;
}