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
Twitter: @xkit
Received on Tuesday, 5 February 2013 03:42:22 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:24 UTC