Re: [css-cascade] Allowing @import to be conditional on @supports queries

On 01/15/2015 08:02 PM, Tab Atkins Jr. wrote:
> On Thu, Jan 15, 2015 at 4:47 PM, L. David Baron <dbaron@dbaron.org> wrote:
>> On Thursday 2015-01-15 16:35 -0800, Tab Atkins Jr. wrote:
>>> I propose that we allow this by adding a
>>> "supports(<supports-condition>)" function to the end @import grammar,
>>> like:
>>>
>>> ```
>>> @import [ <url> | <string> ] [ <media-query-list> ||
>>> supports(<supports-condition>) ]? ;
>>> ```
>>>
>>> In other words, you can supply a media condition and/or a supports
>>> condition.  If we add more conditional rules, we can add more to this
>>> clause as well.
>>
>> Sounds good.
>>
>> Previously discussed in
>> https://lists.w3.org/Archives/Public/www-style/2011Jun/0329.html
>> and deferred to level 4 in:
>> https://lists.w3.org/Archives/Public/www-style/2012Oct/0275.html
>
> That was before Cascade took over defining @import from 2.1.  We could
> probably just bake it into Cascade today.

Cascade's in CR. I'd rather just level it up and post this as L4,
maybe together with reviving the 'default' keyword, since people
keep asking for it.

~fantasai

Received on Friday, 16 January 2015 05:54:38 UTC