-
Notifications
You must be signed in to change notification settings - Fork 544
remove style scoped ? #231
Comments
It's not planned in WebKit: https://webkit.org/status/ |
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. |
They're not seriously suggesting to turn it into SS right? |
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. |
So it's a dirty way of using |
I'm not advocating CSS Modules, just noting there is developer demand for scoped CSS. |
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. |
I believe the problem with scoped CSS is the inability to modify and tags. |
According to a simple test and caniuse.com it's only supported by Firefox, having been removed some time ago from blink.
The text was updated successfully, but these errors were encountered: