Firefox-UI-Fix/__tests__/_has.test.scss

35 lines
678 B
SCSS

@use "true" as *;
@use "example" as *;
@use "../src/utils/has" as *;
@include test-module("`:has()` selector test [mix]") {
@include test("exist `:has()`") {
@include assert {
@include output {
@include Has {
@include example;
}
}
@include expect {
@supports selector(:has(a)) {
@include example;
}
}
}
}
@include test("don't exist `:has()`") {
@include assert {
@include output {
@include NotHas {
@include example;
}
}
@include expect {
@supports not selector(:has(a)) {
@include example;
}
}
}
}
}