[whatwg] Why is @scoped required for <style> as flow content?
Jukka K. Korpela
jkorpela at cs.tut.fi
Sun Mar 27 22:23:39 PDT 2011
Boris Zbarsky wrote:
> If you can only affect _some_ parts of the <body> you should in fact
> be using <style scoped>, no?
No, because the parts might appear around the <body> so that you cannot use
any wrapper that contains them all. It would be awkward to use copies of the
same stylesheet in different <style scoped> attributes.
By the way, there are undoubtedly cases where you would want to use the same
scoped stylesheet for different elements, e.g. for different <blockquote>
elements quoting from the same source. Yet another reason for dropping
<style scoped> in favor of an attribute referring to an external stylesheet.
> The use case for unscoped <style> outside <head> is if you have full
> control over the <body> but no control over <head>.
It is _a_ use case.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
More information about the whatwg
mailing list