DEV Community

Discussion on: CSS Interview Questions Feedback

Collapse
 
alohci profile image
Nicholas Stimpson • Edited

Definitely the right approach, in my opinion. I'd much rather have a conversation about the options for solving a problem, than asking for a single solution. But you need to be balanced, rather than fishing for a particular solution. So if the candidate first offered a flexbox solution for the centring, I'd ask about a non flexbox/grid solution. Similarly, you might get a better conversation if, rather than asking "what does box-sizing: border-box do?", you ask "how could the box have been sized the same, using box-sizing: content-box?"

Have you missed important things? For sure, there's more to CSS than you can realistically ask in a interview. For example, I might want to know about their awareness of CSS's impact on accessibility issues, like content ordering, focus-ring hiding, colour-contrast etc.