Fully case-insensitive
abc is Abc
.button
display: inline-block
#submit
@extend .BUTTON
What is the reasoning for having a case insensitive syntax?
Because CSS itself is case-insensitive:
body {
margin: 0;
}
is the same as
body {
MARGIN: 0;
}
Properties are but selectors are not
that's because the external environment is case-sensitive, not the CSS itself.
But html defines the most heavy use of CSS. I'm not sure if by making the language totally case-insensitive, it would make the developer's life harder. Need more use cases.
By making it case insensitive you are limiting the output and correcting the developer... Never correct the developer, especially when you have nothing to gain by it. If CSS selectors are not case sensitive, then you should not force them to be.
However, selectors are not totally case-sensitive when it comes to pseudo selectors, e.g., ::before is the same as ::Before, and :not() is the same as :NOT()