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

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 27 Aug 2013 17:05:38 +1000
Message-ID: <521C4FC2.1060208@mcc.id.au>
To: www-style list <www-style@w3.org>
What should be alerted here?

     :root {
     var cs = getComputedStyle(document.documentElement, "");

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 

In nearly all situations it won't matter if we treat the value of var-b 
as having a white space token between the two idents.  But it could 
certainly change the validity of a property, for example:

   :root {
     font-size: calc(1px +var(a));
Received on Tuesday, 27 August 2013 07:06:24 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:31 UTC