Re: [css-variables] Variables in @page

@keyframes also supports a wide list of properties. It's however yet to be 
determinted if variables should be relative to :root or the object to which 
the animation is applied.



-----Message d'origine----- 
From: Tab Atkins Jr.
Sent: Friday, June 01, 2012 9:31 PM
To: François REMY
Cc: Simon Sapin ; CSS 3 W3C Group
Subject: Re: [css-variables] Variables in @page

On Fri, Jun 1, 2012 at 11:51 AM, François REMY
<fremycompany_pub@yahoo.fr> wrote:
>> > 1. Descriptors in @-rules can use variables defined on the root 
>> > element.
>> >
>> > This matches the fact that @page inherits from the root element, except
>> > > that
>> > descriptors themselves are not properties and thus do not inherit.
>>
>> This is potentially reasonable, but I'm not sure how useful it is.
>> Use-cases?
>
> Reusing global color constants is already an use case. Here's a list of
> properties that can be used on @page :

We're talking about things *other* than @page and @*-margin.  I
already mentioned that those are basically just selectors, but have to
be wedged into the at-rule syntax.  They inherit from the root
already, so they should "automatically" get variables as well.

Among all the other existing at-rules, are there any where there's a
good reason to want a variable?

~TJ 

Received on Friday, 1 June 2012 19:42:58 UTC