quirks icon indicating copy to clipboard operation
quirks copied to clipboard

Make constructed stylesheets not support quirks mode

Open rakina opened this issue 5 years ago • 4 comments

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


Preview | Diff

rakina avatar Dec 10 '18 07:12 rakina

WPT would be good to have for this.

What do you mean with link from a draft spec?

zcorpan avatar Dec 10 '18 09:12 zcorpan

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

rakina avatar Dec 10 '18 09:12 rakina

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().

annevk avatar Dec 10 '18 10:12 annevk

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.

domenic avatar Dec 10 '18 10:12 domenic