3 ms·
The thing that gives me incomfort is the knowledge that we have a turing-complete language to manage display preferences. It’s not accurate to imply what CSS d
by alwillis 4y ago
The thing that gives me incomfort is the knowledge that we have a turing-complete language to manage display preferences.
It’s not accurate to imply what CSS does is only “managing display preferences”.
CSS is the presentation (color, layout, typography, animation, speech) and state management layer for HTML and SVG, among other markup languages.
I much rather have agreed upon specifications instead of having to invent hacks and work arounds for things that should be standard in 2022.
It took 20+ years to get layout based on columns and rows (CSS Grid); before that, layout comprised of hacks (floats, absolute positioning) and features being misused, like tables.
Container queries, CSS Nesting and the parent selector—-:has()—-results in less and easier to understand code with fewer hacks. It also means doing more without reaching for JavaScript.
CSS is in a good place finally and I for one hope it continues.
- tacotacotaco 4y agoI have had multiple conversations with multiple devs about it being ok to use a table tag when the display is an actual table i.e. columns and rows of data with headers etc. It’s semantically correct! One occasion was for a project wherein the lead rejected my code because I used a table tag for tabular data. I was told to use floating divs instead. I guess the point of my story is that people will misuse tools regardless of what is available to them.