[webkit-dev] Implementing <style scoped>
Edward O'Connor
eoconnor at apple.com
Mon Sep 12 15:18:12 PDT 2011
Ryosuke Niwa wrote:
>>> Why do diverge? It seems like we should at least prefix the
>>> attribute with webkit in the case spec changes in the future.
>
>> See above linked discussion for details. In the end we felt limiting
>> the selector matching to the scope is more natural, and - with the
>> proposed exception providued by :root and :scope - is more flexible.
>>
>> However, naming the attribute 'webkit-scoped' may certainly be a good
>> idea.
>
> Yes, please use webkitscoped (no - since this is content attribute?).
The spec requests that vendor-specific attributes take names of the form
"x-vendor-feature":
http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#extensibility
So x-webkit-scoped would be the way to go.
Ted
More information about the webkit-dev
mailing list