- From: Simon Sapin <simon.sapin@exyr.org>
- Date: Tue, 27 Aug 2013 10:08:07 +0100
- To: www-style@w3.org
Le 27/08/2013 08:05, Cameron McCormack a écrit :
> What should be alerted here?
>
> <style>
> :root {
> var-a:a;
> var-b:var(a)b;
> }
> </style>
> <script>
> var cs = getComputedStyle(document.documentElement, "");
> alert(cs.getPropertyValue("var-b"));
> </script>
>
> I take it that the computed value of var-b is a stream of two ident
> tokens, with no white space between. Should this be represented by
> "a/**/b"?
I believe that this applies, so yes:
http://dev.w3.org/csswg/css-syntax/#serialization
--
Simon Sapin
Received on Tuesday, 27 August 2013 09:08:30 UTC