Comments on: Using Custom Property “Stacks” to Tame the Cascade https://css-tricks.com/using-custom-property-stacks-to-tame-the-cascade/ Tips, Tricks, and Techniques on using Cascading Style Sheets. Mon, 23 May 2022 17:40:35 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Tim https://css-tricks.com/using-custom-property-stacks-to-tame-the-cascade/#comment-1760280 Sat, 18 Jul 2020 11:40:00 +0000 https://css-tricks.com/?p=312969#comment-1760280 Great concept

I hope the syntax can evolve from nested functions

var(--btn-state, var(--btn-type, var(--btn-default)));

into a single var function accepting multiple arguments:

var(--btn-state, --btn-type, --btn-default);

That would be a big win for readability/maintainability.

]]>
By: Christopher Kirk-Nielsen https://css-tricks.com/using-custom-property-stacks-to-tame-the-cascade/#comment-1757969 Mon, 22 Jun 2020 20:18:21 +0000 https://css-tricks.com/?p=312969#comment-1757969 The tip with using initial is tremendously useful, and good to know, given how easy it would be to gloss over that part of the spec. Thank you!

]]>