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
Ideally, we should lock down stylesheets to disallow this. We could use the same mechanism we currently use for templates (registerTemplate) and components (registerComponent). E.g. we could have a registerStylesheet to sign the stylesheet functions.
Note that this wouldn't remove any capabilities that aren't already exposed. You can just inject your own stylesheets manually, e.g. by adding <style> tags, modifying adoptedStyleSheets, etc.
The text was updated successfully, but these errors were encountered:
Related to #2826, it is possible to render whatever dynamic CSS you want by using this hack:
Demo
Ideally, we should lock down stylesheets to disallow this. We could use the same mechanism we currently use for templates (
registerTemplate
) and components (registerComponent
). E.g. we could have aregisterStylesheet
to sign the stylesheet functions.Note that this wouldn't remove any capabilities that aren't already exposed. You can just inject your own stylesheets manually, e.g. by adding
<style>
tags, modifyingadoptedStyleSheets
, etc.The text was updated successfully, but these errors were encountered: