| ▲ | unsupp0rted 5 hours ago | ||||||||||||||||
> If you’re familiar with JavaScript, this should feel pretty familiar. We define new functions with @function and specify the returned value with result. It used to be that HTML was for content, CSS was for layout, and JS was for "code" Now JS is for content and layout and code, HTML is for content and layout, and CSS if for layout and code | |||||||||||||||||
| ▲ | bazoom42 2 hours ago | parent | next [-] | ||||||||||||||||
CSS is for styling and layout, but there is no conceptual reason this couldn’t be defined through functions. “Code” is not a concern like semantic vs style. | |||||||||||||||||
| ▲ | kaelwd 4 hours ago | parent | prev | next [-] | ||||||||||||||||
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/P... | |||||||||||||||||
| |||||||||||||||||
| ▲ | matsemann 4 hours ago | parent | prev | next [-] | ||||||||||||||||
I think your definition is off. Js was never for "code". The code itself is just a means to a goal. That certain things better can be achieved without js is good. | |||||||||||||||||
| |||||||||||||||||
| ▲ | vazark 3 hours ago | parent | prev | next [-] | ||||||||||||||||
JS was for "interactivity". CSS function is just a simple abstraction for user reusable logic. | |||||||||||||||||
| ▲ | gtsop 4 hours ago | parent | prev [-] | ||||||||||||||||
[dead] | |||||||||||||||||