W3C home > Mailing lists > Public > www-style@w3.org > April 2012

[css3-values][css-variables] definition of <value>

From: Kang-Hao (Kenny) Lu <kennyluck@csail.mit.edu>
Date: Fri, 06 Apr 2012 09:44:34 +0800
Message-ID: <4F7E4A82.3030301@csail.mit.edu>
To: WWW Style <www-style@w3.org>
For the default value of attr() and the arguments of cycle(), the spec
defines <value> as "CSS value that is valid where the expression is
placed", which, based on some discussions on the CSS Variables spec, is
known to be pretty underspecified (the '!important' issue, how to deal
with shorthands, etc.). I assume the idea is that we put in these
details when there's enough implementation experience at the CR stage.

However, I think it would be better to have a common place for common
questions shared by the three (attr, cycle, var). Whether that's a new
section of this module, a subsection of "Data Types Defined Elsewhere"
having <value> loosely defined and extended/modified by CSS Variables, I
don't know.

In any case, here are two issues that should be addressed here because
they only apply to attr() and cycle(), not var():

1. can <value> contain ',' ? If yes, how is syntax ambiguity resolved
within a cycle() ?

2. they both use "valid where the attr()/cycle() expression is placed".
That's fine, but I think the spec should talk about the situation when
there are multiple attr() or cycle() for a property value: all the
possible combinations should be valid. (Or just disallow this at all.)


Cheers,
Kenny
Received on Friday, 6 April 2012 01:45:05 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:52 GMT