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

Re: [css-cascade][Editorial] "avoid retrieving resources" with MQs in @import

From: Simon Sapin <simon.sapin@exyr.org>
Date: Thu, 29 Aug 2013 09:05:33 +0100
Message-ID: <521F00CD.7030808@exyr.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style list <www-style@w3.org>, fantasai <fantasai.lists@inkedblade.net>
Le 13/08/2013 23:54, Tab Atkins Jr. a écrit :
> On Mon, Jul 29, 2013 at 5:01 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
>> Hi,
>>
>> In its definition of @import, css-cascade has this sentence:
>>
>>> So that user agents can avoid retrieving resources for unsupported
>>> media types, authors may specify media-dependent @import rules.
>>
>>
>> I think this is misleading and should be removed. Media Queries are not
>> about resources retrieving, but conditional application of rules and
>> stylesheets in the cascade.
>>
>> css-cascade should introduce them as such, and only secondarily say that UAs
>> *may* deprioritize or otherwise delay the retrieving of resources that do
>> not apply. (Although CSSOM maybe constrains this.) UAs *may* still choose to
>> load them in case they start to apply later.
>>
>> Resource loading is undefined in CSS 2.1, and I believe it should stay that
>> way in Cascade Level 3. We had discussions a few months ago about adding an
>> explicit "defer" flag for resources that do not apply. Please start a new
>> thread if you want to discuss that further.
>
> Done!

The 2013-08-28 ED looks good.

-- 
Simon Sapin
Received on Thursday, 29 August 2013 08:05:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:33 UTC