- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Tue, 28 Aug 2012 11:09:07 -0700
- To: Boris Zbarsky <bzbarsky@mit.edu>
- Cc: whatwg <whatwg@whatwg.org>
On Tue, Aug 28, 2012 at 11:04 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote: > I just added support for <link rel="stylesheet" crossorigin> in Gecko.[1] > Such links are subject to CORS checks if the load is cross-site, and the > sheet load will fail if the CORS check fails. If the CORS check succeeds, > script in the page will be able to script the cross-site stylesheet. > > This allows stylesheets served from a CDN to be scripted by the page if > desired, so I would like to propose that we add this feature to the spec. > > An open issue: what to do about @import? I haven't done anything magic here > yet. Inheriting the CORS mode from the importing sheet is a bit weird, and > I wasn't quite sure I wanted to make CSS syntax changes at this time. > > -Boris > > [1] https://bugzilla.mozilla.org/show_bug.cgi?id=732209 I think I'm of the opinion that @import should, in general, act the same as if the stylesheet was inlined. So, I support forwarding the CORS mode to the imported sheets. (On the other hand, this doesn't allow @import in <style> to be crossorigin.) ~TJ
Received on Tuesday, 28 August 2012 18:09:57 UTC