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

The references proposal is trying to solve a different problem, but still fits into the framework of scoped styles. Allowing a component author to provide a set of references for a simple control would greatly reduce the complexity of many implementations. The learning curve and complexity of Shadow DOM is quite high frankly, it is a completely different way of thinking and multi-disciplinary. Using scoped styles with references would enable many powerful use cases and help ease people into the world of Shadow DOM.

One use case made easier would be the control of intricate animations within an otherwise simple web component. Think the material button, simple in nature but the animations can be tricky.

I believe that truly componentized structures in HTML are key, we have been heading in this direction for sometime. First was BEM and Smacss. Then came Atomic Design and now we have css-in-js. All of these techniques point to the direction of easily componentized structures.

There is a reason frameworks like React are so popular now. By enabling authors to do more with only declarations, it can only serve to flatten the learning curve for the other more advanced options.

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

Received on Sunday, 21 July 2019 14:35:49 UTC