quirks
quirks copied to clipboard
Make constructed stylesheets not support quirks mode
Constructed stylesheets should not support quirks mode. See https://github.com/WICG/construct-stylesheets/issues/59. I'm not sure if I need to make a WPT for this and how to link from a draft spec. I guess this shouldn't be merged until constructable stylesheets are part of CSSOM?
cc @domenic
WPT would be good to have for this.
What do you mean with link from a draft spec?
OK, I'll try to make a WPT then.
What do you mean with link from a draft spec?
For the "constructed flag" definition, which is currently only defined in https://wicg.github.io/construct-stylesheets/index.html#cssstylesheet-constructed-flag
I appreciate that we're standardizing this, but I'd like the layering to be different I think. I think the model should be that a style sheet also has a quirks mode slot, which it typically inherits from a document, but not always.
Note that you can also end up in this situation with the Link
header in some browsers, coupled with document.open()
.
Yep, that's definitely the ideal layering, but I think given that the quirks mode spec already has several of these "this syntax must only be supported in X contexts", we should continue with that pattern for now, and let the editors of CSSOM/Quirks work on fixing the layering later.