4 ms·
What in gods abomination is this - 3px yellow if( style(--color: green): dashed; style(--color: yellow): inset; else: solid; ) —- CSS was suppose to be
by potato-peeler 1y ago
What in gods abomination is this -
3px yellow if(
style(--color: green): dashed;
style(--color: yellow): inset;
else: solid;
)
—-
CSS was suppose to be only for styles, single responsibility and all. What is the need to introduce logic in cascading style sheets. Isn’t js enough?
- cluckindan 1y agoDifferent responsibilities. if() seems great for multisite/multitheme enterprise applications.