Re: Deferring CSS load for unmatched Media Queries

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 UTC