DEV Community

Discussion on: 5 CSS interview questions one should know [part 2]

Collapse
 
isherwood profile image
Clint Buhs • Edited

Good stuff. Thanks for posting it.

I was interested in your description of pseudo-elements, as I'd struggle to explain them myself even though I've used them hundreds of times. I'm not sure it's complete, though. What is a pseudo-element, technically speaking? An interviewer might want to hear that.

I'd also drop the border-radius point and add something newer. It conveys stagnation to me since it's about a decade old now (though it was certainly a ray of sunlight to developers back then). The :not() selector and position: sticky come to mind.

Finally, I'd like to hear more about why currentColor is useful. Your explanation is missing a good example that demonstrates usefulness. I'll be researching that myself to learn more.

Keep up the good writing!