W3C home > Mailing lists > Public > www-style@w3.org > August 2013

Re: [css-variables] computed value of variables with abutting tokens

From: Simon Sapin <simon.sapin@exyr.org>
Date: Tue, 27 Aug 2013 10:08:07 +0100
Message-ID: <521C6C77.5090703@exyr.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 27 August 2013 09:08:38 UTC