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

[css-variables] typed variables, was: shortcut properties, fundamental limitation

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Tue, 26 Feb 2013 20:22:42 -0800
Message-ID: <CALRQH7__jXnJsW+ZGTqtKm5a1bcQfPZ870X7oGbKtwvem2AKdA@mail.gmail.com>
To: www-style@w3.org
Just an idea how to solve problem with shortcut properties and
variables in them.

If we will define that
a) var() function *shall always* accept fallback value and
b) that fallback value shall always static (known at parse time)

so it will look like this:


then the parser can handle this declaration:

  background: var(my-color, #FFF) var(back-repeat,no-repeat)
var(back-img, url(some.png));

and properly assign variables to "terminal" properties. That if
fallback values are correct by themselves.

So we don't need those artificial type names (c) Mr. Atkins.

Andrew Fedoniouk.

Received on Wednesday, 27 February 2013 04:23:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 12:35:23 UTC