You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main issues with using <style> in declarative Shadow DOM (DSD) are:
It's not equivalent to adopting a stylesheet since the sheet is not shared between different shadowRoots. A shared sheet can be modified and any shadowRoots in which it's adopted are automatically updated. There is currently no way to do this with DSD
Identical styling must be re-emitted as HTML as many times as it's used. This bloats the HTML size of the document. Some of the cost can be easily mitigated via compression and also since browsers likely optimize actual creation of stylesheets. However, the strings must be decompressed and parsed and this adds needless extra work.
The text was updated successfully, but these errors were encountered:
The main issues with using
<style>
in declarative Shadow DOM (DSD) are:The text was updated successfully, but these errors were encountered: