3 ms·
I disagree, so many times I had to do what the examples show on the article: having component displaying slightly differently based on content. Could be a simpl
by yohannparis 4y ago
I disagree, so many times I had to do what the examples show on the article: having component displaying slightly differently based on content. Could be a simple as margins/padding, etc., or even colour based on the designer's choices.
So now, instead of adding class to an element to choose how to display those differences of content, I can just use :has() selector. Thus removing even more design concerns from the HTML back into the CSS where it belongs.