Re:Incomplete List of Mistakes in the Design of CSS
by VonGuard on Wednesday October 24, 2018 @11:26PM
(#18298368)
The thing i hate about CSS is how unstructured it can be. You just sorta list whatever you want and it's suddenly a style sheet. No headers, no footers, no must includes.... DO I use quotes around this value? Do I not? Does white space matter? It's the most intimidating language I've ever used just because it feels so open and uncontrolled and nonsensical... I always thought CSS was some leftover abomination from the days of Netscape.
[ Parent
| on HN ]
Re:Incomplete List of Mistakes in the Design of CSS
by devwastaken on Wednesday October 24, 2018 @11:31PM
(#18298384)
LESS is more how CSS should look like for styling. It's amazing we don't have embedding of rules yet.
parent {
child {
}
}is just so much more development friendly than
parent {
}
parent child {
}
Re:Incomplete List of Mistakes in the Design of CSS
by gsnedders on Thursday October 25, 2018 @10:55AM
(#18301345)
The CSS WG earlier this year resolved to take on a spec defining this, and there's implementer interest, so it's highly likely to happen.
(This is https://github.com/w3c/csswg-drafts/issues/2701 .)
Re:Incomplete List of Mistakes in the Design of CSS
by bsheir74 on Wednesday October 24, 2018 @11:49PM
(#18298443)
Agreed, and hoping that scss or less influences future versions of css!
Re:Incomplete List of Mistakes in the Design of CSS
by mjevans on Thursday October 25, 2018 @04:48AM
(#18299446)
I believe the why is that as soon as you have any invalid syntax everything else is ignored. I forget the level of scope, I think it's until the next complete rule?
Re:Incomplete List of Mistakes in the Design of CSS
by scns on Thursday October 25, 2018 @04:58AM
(#18299489)
with PostCSS and the postcss-nested you can nest loads of stuff like mediaqueries, which makes it bearable IMHO.
Re:Incomplete List of Mistakes in the Design of CSS
by _hardwaregeek on Wednesday October 24, 2018 @11:36PM
(#18298404)
Plus the error handling is abysmal.