Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
janitor61
on Dec 15, 2022
|
parent
|
context
|
favorite
| on:
Help choose the syntax for CSS Nesting
I'd say they should avoid bloating CSS, keep Sass style and just use type='text/sass' or type='text/css-nested' in the style tag, but it seems that attribute is depreciated... why is that?
alwillis
on Dec 16, 2022
|
next
[–]
The type attribute is not deprecated… but of course, no browser supports anything like
<link rel="stylesheet" type="text/sass" href="style.css">
And certainly it breaks compatibility with older browsers which won't know what to do with it.
wruza
on Dec 16, 2022
|
parent
|
next
[–]
They don’t know what to do with options 1..5 neither.
dagurp
on Dec 16, 2022
|
prev
[–]
How about a new file extension. .css2 or.xcss or something?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: