[Webkit-unassigned] [Bug 49142] Implement HTML5 style scoped attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 25 22:32:49 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=49142





--- Comment #15 from Ian 'Hixie' Hickson <ian at hixie.ch>  2011-05-25 22:32:48 PST ---
> <div>
>     <p>
>         <style scoped>
>             div span { color: red }
>         </style>
>         <span>Not actually red</span>
>     </p>
> </div>

Well this particular example is bad for unrelated reasons -- <style> isn't allowed in <p>. But ignoring that for a second, the above will be red, yes. The _only_ thing that this does is change which style sheets apply. It doesn't affect the cascade, it doesn't affect selector matching, it doesn't affect specificity, it doesn't affect inheritance, it doesn't affect anything else.

It would be helpful for me if you could quote the part of the specification that led you to conclude otherwise, so that I could fix it.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list