Re: [csswg-drafts] [css-scoping] Please bring back scoped styles (#3547)

> CSS Scoped Style spec proposal (@scope): https://www.w3.org/TR/2014/WD-css-scoping-1-20140403/#scope

@fantasai This looks good/interesting. To be clear, is this a new proposal you recently wrote? 

One concern is the limitation of using selector identifiers. Would this preclude from doing...

```html
<custom-element>
   <div></div>
   <style scoped>
       div {
           max-width: 60ch;
       }
   </style>
</custom-element>
```

... where `max-width: 60ch` refers to just this instance of `<custom-element>`?

Sorry if I have understood it poorly.

-- 
GitHub Notification of comment by Heydon
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3547#issuecomment-458305265 using your GitHub account

Received on Monday, 28 January 2019 21:18:39 UTC