A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sass/libsass/issues/558 below:

named colours behave oddly when used in variables · Issue #558 · sass/libsass · GitHub

There's something odd going on with named colours. They're meant to be "indistinguishable from unqoted strings".

@function is_gold($c) {
    @if ($c == gold) {
        @return 'yes';
    }
    @return 'no';
}

div {
    foo: is_gold(gold);
    bar: is_gold(white);
}

sass gives me:

div {
  foo: "yes";
  bar: "no"; }

sassc gives me:

div {
  foo: 'no';
  bar: 'no'; }

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4