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

Re: Deferring CSS load for unmatched Media Queries

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Mon, 4 Feb 2013 19:41:53 -0800
Message-ID: <CABZUbM03g2WrgihXCrUkwTz0nH2z0gCuf8xTOovLNqLNJtRYSg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style@w3.org
On 2/4/13, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 2/4/13 11:56 PM, Tab Atkins Jr. wrote:
[...]
>
> As a separate issue, it's not obvious to me whether it's better to have
> a null OM or a CSSStyleSheet object that throws when you try to examine
> its rules (but not if you just want to check whether it's disabled,
> say).  Gecko currently does the latter, I believe, but there are
> reasonable arguments both ways...
That's what I was wondering.

Other options include a 'loaded' flag (readonly) and an zero-length
CSSRuleList. And if it is not loaded, would a 'load' method be
desirable?
-- 
Garrett
Twitter: @xkit
personx.tumblr.com
Received on Tuesday, 5 February 2013 03:42:22 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:05 GMT