summaryrefslogtreecommitdiff
path: root/scss/tests/files/from-sassc/spec-basic-30_if_in_function.scss
blob: 6e2368bf5aef9f9255f145e4c4162adef2454be8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$x: true;

@function foobar() {
  @if $x {
    $x: false;
    @return foo;
  }
  @else {
    $x: true;
    @return bar;
  }
}

div {
  content: foobar();
  content: foobar();
  content: foobar();
  content: foobar();
  $x: false;
  content: foobar();
}