Style sheets created from <style>
elements have no location, which breaks CSS fetch algorithms
#11281
Labels
<style>
elements have no location, which breaks CSS fetch algorithms
#11281
Uh oh!
There was an error while loading. Please reload this page.
What is the issue with the HTML Standard?
This bug comes from interop between the HTML and CSS specs. I'm posting it here as I think the solution is to update the "update a style block" algorithm, but that's just my impression. (I've posted a stub spec issue there for visibility to CSSWG folks: w3c/csswg-drafts#12147)
Style sheets created from
<style>
elements have nolocation
- see "update a style block"This breaks multiple CSS fetch algorithms:
As far as I can tell, the solution is to modify "update a style block" so that the location of the created style sheet is set to the document's base URL instead of null. I'm not seeing any regressions when doing this in Ladybird, but there might be nuances there I'm missing. Alternatively the CSS algorithms could be adjusted to handle the null-location case.
cc: @noamr as this is related to the other CSS fetch issues.
The text was updated successfully, but these errors were encountered: