3 ms·
Lesser-Known and Underused CSS Features in 2022
- transfire 4y agoI suppose it’s good to have options, but damn the complexity of CSS these days… I still wrestle with just trying to get the basics to do what I expect. Also, I worry about the efficiency of the engines that handle all this complexity. How much of a CPU is getting used up to render complex CSS? Modern CSS is already Turing complete. I wonder how much longer before we have to compile our CSS into some VM byte code for acceptable performance. And at what point do we say this hodge-podged design has gotten out of hand and we need to go back and build from scratch?
- marban 4y agoYes, you can do cutting edge stuff but most of the newer features is more like a shorthand for things you could already do with certain hacks.
- theandrewbailey 4y agoI've been using currentColor for almost 10 years to implement an animated glow effect when hovering over links.
- gRoberts84 4y agocurrentColor comes in handy with SVG's too. https://jsfiddle.net/gRoberts/nsjb2dyp/ https://jsfiddle.net/gRoberts/nsjb2dyp/ D'oh, I couldn't read the article as it was throwing a 500 error but now it's working I see that they highlighted this.