Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for <style> elements in default template engine. #237

Open
theengineear opened this issue Dec 21, 2024 · 0 comments
Open

Comments

@theengineear
Copy link
Collaborator

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.

@theengineear 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant