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

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/ 

Received on Sunday, 27 March 2011 22:23:39 UTC