Re:Incomplete List of Mistakes in the Design of CSS
by xienze on Monday October 26, 2015 @11:10PM
(#10456067)
All that and nothing about variables?
[ Parent
| on HN ]
Re:Incomplete List of Mistakes in the Design of CSS
by kagamine on Tuesday October 27, 2015 @04:19AM
(#10456817)
I find myself often wishing conditionals on CSS until I remember that they aren't necessary because things like
input[type="submit"]{}
exist (but feel hacky as can be) and that if they did exist I would never, ever want to edit someone else's CSS file. Can you imagine the mess?It would be nice not to have to look for a style:
1. inline html
2. in the CSS file(s)
3. in JavaScript (or js library)
4. in the source code in the backend
to find that one edit you need to make.
I think that limitation is the most frustrating, that because CSS cannot 'see' beyond its own little home it bleeds out into other documents.
Re:Incomplete List of Mistakes in the Design of CSS
by TabAtkins on Sunday November 01, 2015 @02:41PM
(#10487803)
We have variables now <https://drafts.csswg.org/css-variables/> so it's not a mistake that needs a time machine.