[whatwg] Why is @scoped required for <style> as flow content?

Christoph Päper christoph.paeper at crissov.de
Mon Mar 28 04:12:20 PDT 2011


Jukka K. Korpela:

> Yet another reason for dropping <style scoped> in favor of an attribute referring to an external stylesheet.

I’m not sure which of these I would hate the least:

  <blockquote stylesheet="external.css">…

  <blockquote style="@import external.css;">…

  <blockquote><style scoped src="external.css" />…

  <blockquote><style scoped>@import external.css;</style>…

  <blockquote><link rel=stylesheet href="external.css" />…

They are all better, though, than this:

  <blockquote><style scoped>copy: paste; a: lot;</style>…


More information about the whatwg mailing list