Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

remove style scoped ? #231

Closed
chaals opened this issue Apr 21, 2016 · 8 comments
Closed

remove style scoped ? #231

chaals opened this issue Apr 21, 2016 · 8 comments

Comments

@chaals
Copy link
Collaborator

chaals commented Apr 21, 2016

According to a simple test and caniuse.com it's only supported by Firefox, having been removed some time ago from blink.

@ZoeBijl
Copy link

ZoeBijl commented Apr 21, 2016

It's not planned in WebKit: https://webkit.org/status/

@cheshrkat
Copy link

Meanwhile the new hottness is CSS Modules (https://github.com/css-modules/css-modules), suggesting a fond wish to stop CSS cascading. There's demand for a usable feature to scope CSS amongst authors at least.

@ZoeBijl
Copy link

ZoeBijl commented Apr 26, 2016

@cheshrkat wrote:
…suggesting a fond wish to stop CSS cascading.

They're not seriously suggesting to turn it into SS right?

@cheshrkat
Copy link

My answer was obviously a little flippant, but my understanding is it's all about locally scoping CSS so styles written for a component do not apply elsewhere. It generates ID-like class names which are tightly coupled to the HTML rendering. The author can then choose to push styles up to global scope as the exception. So, essentially it's an attempt to stop the cascade.

@ZoeBijl
Copy link

ZoeBijl commented Apr 27, 2016

So it's a dirty way of using scoped? I feel like people don't understand the cascade and thus are trying to work around it.

@cheshrkat
Copy link

I'm not advocating CSS Modules, just noting there is developer demand for scoped CSS.

@prlbr
Copy link
Contributor

prlbr commented Apr 27, 2016

Yep, I'm a developer and I have demand for scoped CSS.

It's somewhat annoying to see it in the spec and not being implemented (except by Firefox). I wish it would be implemented. On the other hand, I would support the motion to remove it from the spec, if it was clear that other browser vendors definitely won't implement it. I really would like to hear the reasons for not implementing it though.

@RyanSquared
Copy link

RyanSquared commented Apr 27, 2016

I believe the problem with scoped CSS is the inability to modify and tags.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants