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
Now that the “Import Attributes” TC39 proposal has been accepted, browsers are allowing developers to import instantiated CSSStyleSheet objects from .css files directly. This obviates the need to inline a <style> tag in a template — instead, you can just move it to a .css file.
Since (1) the rules to support <style> tags are specialized and (2) it’s preferable to externalize style sheets anyhow — this seems like an obvious choice to restrict usage of <style> within the default template engine.
The text was updated successfully, but these errors were encountered:
theengineear
changed the title
Discussion: Remove support for <style> elements in default template engine?
Remove support for <style> elements in default template engine.
Dec 28, 2024
Now that the “Import Attributes” TC39 proposal has been accepted, browsers are allowing developers to import instantiated
CSSStyleSheet
objects from.css
files directly. This obviates the need to inline a<style>
tag in a template — instead, you can just move it to a.css
file.Since (1) the rules to support
<style>
tags are specialized and (2) it’s preferable to externalize style sheets anyhow — this seems like an obvious choice to restrict usage of<style>
within the default template engine.The text was updated successfully, but these errors were encountered: