Re: [css3-fonts] Re: Adding something to the current stack (smarter fallbacks)

2012/1/19 Marat Tanalin | tanalin.com <mtanalin@yandex.ru>:
> 19.01.2012, 21:44, "Tab Atkins Jr." <jackalmage@gmail.com>:
>> This could also be addressed by something like:
>>
>> background-image-4: url(whatever.png);
>>
>> That seems somewhat easier to read - it's difficult to tell off-hand
>> what layer is being referenced in your example.
>
> Just thoughts: maybe background-image[4] (looks more array-like)?

That's not allowed by the grammar currently, though by the
error-recovery rules it would fail nicely (it'll eat content until the
next ";" or "}", like any malformed declaration). I agree that it
looks a little better.  My concern is that it looks a bit more like
mutating, rather than a separate property, so the fact that it works
within the normal cascade system might be confusing.

> Is there a draft for accessing individual items of CSS enumerations such as in multiple bg-layers case?

No.  It's been an off-and-on topic for some time, and is now coming
back into discussion.

~TJ

Received on Thursday, 19 January 2012 17:56:49 UTC