Debian Codegraph @

sass-spec/spec/output_styles/nested/basic/55_variable_exists/input.scss

raw
1 @function exists($name) {
2 @return variable-exists($name);
3 }
4
5 @function f() {
6 $foo: hi;
7 @return g();
8 }
9
10 @function g() {
11 @return variable-exists(foo);
12 }
13
14 div {
15 foo: variable-exists(x);
16 foo: variable-exists("x");
17
18 span {
19 $x: false;
20
21 foo: variable-exists(x);
22 foo: variable-exists("x");
23 foo: variable-exists(y);
24 foo: variable-exists("y");
25 foo: exists(x);
26 foo: exists("x");
27
28 p {
29 foo: variable-exists(x);
30 foo: variable-exists("x");
31 foo: exists(x);
32 foo: exists("x");
33 foo: variable-exists(y);
34 foo: variable-exists("y");
35 foo: f();
36 $y: blah;
37 }
38 }
39
40 }