3 ms·
I think one of the major advantages of Web Components is that styles can be isolated without the need for name-spacing. There is no need to carefully structure
by LaMarseillaise 7y ago
I think one of the major advantages of Web Components is that styles can be isolated without the need for name-spacing. There is no need to carefully structure CSS according to the DOM, because this isolation is included with the shadow DOM. Incorporating CSS grid takes this even further, allowing these isolated designs to be responsive to the layout without needing to know what it is.
- IggleSniggle 7y agoAbsolutely agree. My only gripe is that consuming a blackbox (ie third party) Web Component inside a Web Component can get problematic. Your options become create a global override system or (shudder) Shadow DOM piercing.