Debian Codegraph @

sass-spec/spec/css/custom_properties/name_interpolation/input.scss

raw
1 .name-interpolation {
2 // If the entire name is interpolated, SassScript is allowed on the
3 // right-hand side because we don't know it's a custom property at parse time.
4 #{--entire}: 1 + 2;
5
6 // Same if the first hyphen is interpolated.
7 -#{-first-hyphen}: 1 + 2;
8
9 // But if the name is interpolated, the right-hand side is static.
10 --#{only-name}: 1 + 2;
11 // However, interpolation is still allowed on the right-hand side.
12 --#{only-name-interp-value}: #{1 + 2};
13
14 // The name can also be partially interpolated.
15 --#{initial}-interp: 1 + 2;
16 --midd#{le-int}erp: 1 + 2;
17 --final-#{interp}: 1 + 2;
18 --#{doub}le-int#{erp}: 1 + 2;
19 }