You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This applies at least to @import in sheets, and to the sheets themselves if loading from URL ever gets allowed. For <link> and @import from link loads, a non-text/css type for a same-origin load in quirks mode allows the sheet to be parsed. It seems to me that we may not want that quirk here.
Um... I don't see a conclusion in #25 that "disallows import". Have you talked to the CSSWG about this? You can't just go creating your own separate CSS syntax willy-nilly!
@tabatkins shall we describe the response type restriction for each spec that involves any loading, or is there good one place to put all relevant information?
I suspect that each spec should define their type restrictions; there's a lot of places where things are loaded, so having a single point that tries to define all of them is probably bad. But I think @annevk would have a more useful opinion on that.
I'd actually expect a single point to be defined in CSS somewhere, suitably parameterized. Especially for security-sensitive code like loading you don't want too many independent decision makers.
Activity
TakayoshiKochi commentedon Apr 6, 2018
Good catch, I don't think we have to support legacy behavior like quirks mode, as this is for a new API.
TakayoshiKochi commentedon May 22, 2018
As #25 concludes disallowing @import, let me close this.
bzbarsky commentedon May 22, 2018
Um... I don't see a conclusion in #25 that "disallows import". Have you talked to the CSSWG about this? You can't just go creating your own separate CSS syntax willy-nilly!
TakayoshiKochi commentedon May 22, 2018
Well, sorry for the wording "conclusion" - it was not really a consensus.
tabatkins commentedon May 22, 2018
Ignoring #25 for the moment tho, I agree that we shouldn't support non-
text/cssresponses in this API.TakayoshiKochi commentedon May 23, 2018
@tabatkins shall we describe the response type restriction for each spec that involves any loading, or is there good one place to put all relevant information?
tabatkins commentedon May 23, 2018
I suspect that each spec should define their type restrictions; there's a lot of places where things are loaded, so having a single point that tries to define all of them is probably bad. But I think @annevk would have a more useful opinion on that.
annevk commentedon May 23, 2018
I'd actually expect a single point to be defined in CSS somewhere, suitably parameterized. Especially for security-sensitive code like loading you don't want too many independent decision makers.
rakina commentedon Sep 12, 2018
#35 resolves this - We don't handle non-
text/css.