Re: [csswg-drafts] [cssom-1] circular imports and CSSImportRule (#4287)

> (And sorry for the lag here, was OOO until now :))

np, that's why i tagged you, so hopefully it would show up higher-priority in your inbox. ^_^

> Do Blink / WebKit null out the stylesheet for failing loads? Or only for cyclic ones?

For Blink:

* on cyclic loads, the .styleSheet is null. (Both for direct self-inclusions, and for cycles between sheets; if page imports A, A imports B, and B imports A, then B's @import rule will have a null stylesheet.)
* on failed loads, the .styleSheet works, but it throws an exception if you try to access .cssRules. (The same error you get from trying to access the rules of a cross-origin stylesheet.)

I'd be okay with the behavior of having a stylesheet, but making it self-censor like a failed or cross-origin sheet, yeah.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4287#issuecomment-530909806 using your GitHub account

Received on Thursday, 12 September 2019 16:45:58 UTC