[whatwg] A link[scoped] usecase

Boris Zbarsky bzbarsky at MIT.EDU
Fri Mar 2 07:43:13 PST 2012


On 3/2/12 5:59 AM, Gray Zhang wrote:
> <div>
>      <!-- This link element only works for it's containing div -->
>      <link rel="stylesheet"
> href="3rd-party-theme/user-published-20120302133702.css" scoped="scoped" />
>      <span class="keyword">function</span><span
> class="identifier">test</span>...
> </div>

<div>
   <style scoped>
     @import url(3rd-party-theme/user-published-20120302133702.css);
   </style>
   Stuff
</div>

> By now, for the reason that there is not link[scoped] and style[scoped] is
> not supported for any browser

Seems like once browsers implement style[scoped] your problem is solved, 
right?

-Boris



More information about the whatwg mailing list