Re: CSS variable syntax

On 03/04/2014 17:31, Tab Atkins Jr. wrote:
> CSS Syntax already allows at-rules inside of style
> rules (none are defined yet, but it's available when we extend into
> that realm, which we will definitely do), and you don't need a
> semicolon between a property and a following at-rule, so we can't use
> at-keywords as value syntax.

You do need the semicolon in this case, so we could have at-keywords in 
property values.

But an "item" in a declaration list that starts with an at-keyword is 
already an at-rule, so it can not be a custom property declaration. This 
is used in CSS Paged Media:

@page {
   size: A4 landscape;
   @top-left {
     content: "Title!";
   }
}

-- 
Simon Sapin

Received on Thursday, 3 April 2014 16:37:38 UTC