W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2012

[whatwg] A link[scoped] usecase

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 02 Mar 2012 10:43:13 -0500
Message-ID: <4F50EA91.3000008@mit.edu>
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
Received on Friday, 2 March 2012 07:43:13 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:40 UTC