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
{{ message }}
Repository navigation
Should use "fetch a CSS style sheet" from CSSOM #968
The issue in the HTML Standard says this would replace "default fetch and process the linked resource", but I'm not sure how good that is given how much common infrastructure it covers, such as referrer policy and integrity.
Yes, these days I'd kind of prefer to invert the model. Especially after @domfarolino's work revamping link fetching to be more hookable, I think more likely we could define "linked resource fetch setup steps" for stylesheets, and keep it all centralized in HTML.
Yes, these days I'd kind of prefer to invert the model. Especially after @domfarolino's work revamping link fetching to be more hookable, I think more likely we could define "linked resource fetch setup steps" for stylesheets, and keep it all centralized in HTML.
I tend to agree. To make the CSS variant variable it would need to copy or import things from HTML such as "potentail-CORS" stuff which should have knowledge about crossorigin attributes of link elements - an HTML concern rather than CSS.
Activity
annevk commentedon Jun 14, 2019
The issue in the HTML Standard says this would replace "default fetch and process the linked resource", but I'm not sure how good that is given how much common infrastructure it covers, such as referrer policy and integrity.
domenic commentedon Jun 14, 2019
Yes, these days I'd kind of prefer to invert the model. Especially after @domfarolino's work revamping link fetching to be more hookable, I think more likely we could define "linked resource fetch setup steps" for stylesheets, and keep it all centralized in HTML.
annevk commentedon Jan 7, 2020
I noticed that the CSSOM variant does not check for the response's status to be 2xx.
noamr commentedon Oct 6, 2021
I tend to agree. To make the CSS variant variable it would need to copy or import things from HTML such as "potentail-CORS" stuff which should have knowledge about
crossoriginattributes of link elements - an HTML concern rather than CSS.Align classic script and resource lifecycles