RE: [css-variables][css-cascade] interaction of variables with "initial", "inherit", "default" and the "all" shorthand

> Two issues. First, if you have:
>
> #a { var-x: 1; }
> #a> * { var-x: inherit; }
>
> is the computed value of var-x "1" or "inherit"?

My interpretation is that 'var-x' has the 'inherit' value. If you want to 'inherit' the parent value, you've to use something like "var(parent x)" (aka "get(parent var-x)") which is resolved at pre-computation time.


>
> Second, if you have:
>
> #b { var-x: 1; all: initial; }
>
> does 'all' also include custom properties? If it does, does this
> declaration set var-x to its initial (empty) value, or does it set it to
> the keyword "initial"?

This is a tricky one :-) I've no idea what this is doing but I guess it should reset all variables to their empty value. 		 	   		  

Received on Monday, 20 May 2013 08:58:02 UTC