On 2011-10-20 07:52, Jonas Sicking wrote:
I'm not sure I understand what you are proposing here. Are you saying that<div> <style scoped> :scope { background: green; } </style> </div> should set the background of the<div> green? This does seem intuitive I agree, but it might also lead to strange behavior since the rendering of the<div> will change once the stylesheet is parsed. In other words, it's very easy to get flash-of-unstyled-content behavior.
In the majority of cases, that's a very easy problem for authors to avoid by always putting <style scoped> as the first child of the element. Since a <div> is invisible in most cases without any content or other styles, any change in rendering from invisible to visible wouldn't be any different from normal incremental rendering.
-- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/
