-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Proposal: Shorthand syntax for external stylesheets (<style src="...">) #11240
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
Comments
While this would be nice if this form was being designed from scratch, it's unlikely to be viable due to the Web's backwards compatibility commitment. That is to say, removing additionally, if it made it in it would have to be |
Not proposing to remove the I've been making websites on and off for 30 years and still have to search how to import a stylesheet...🤦♂️ |
I like the idea of DX improvements. This seems like it would be benign right? Or are there a bunch of userland libs that are handle |
It's unlikely to be problematic from a back-compat perspective, it's just of extremely minimal value. Arguably it's |
|
It's the fact that it's a source of confusion for new authors (and those who have been doing this for 30 years!) that led me to suggest this. It's more to have some consistency - ideally would have -
as mentioned here - #2791 (comment) |
What problem are you trying to solve?
It's difficult to go from inline stylesheets to external stylesheets - the syntax goes from this
to this
which is hard to remember.
It's also inconsistent with inline vs external <script> elements, where you go from this
to this
which is unfortunately not self-closing.
What solutions exist today?
None?
How would you solve it?
Add syntax to go from
to
Anything else?
Even if it's not possible to do, I'm curious about why/why not, and wanted to add it to this repo for reference. Maybe there are discussions on old mailing lists?
The text was updated successfully, but these errors were encountered: