:has is an unforgiving selector | Style-Tricks

A bit factor occurred on the way in which to publishing the CSS :has() selector to the ol’ Almanac. I had initially described :has() as a “forgiving” selector, the concept being that something in its argument is evaluated, even when a number of of the gadgets is invalid. /* Instance: Don’t use! */ article:has(h2, ul, […]

Taming the Cascade With BEM and Modern CSS Selectors | Style-Tricks

BEM. Like seemingly all strategies on the earth of front-end growth, writing CSS in a BEM format might be polarizing. However it’s – no less than in my Twitter bubble – one of many better-liked CSS methodologies. Personally, I believe BEM is sweet, and I believe you must use it. However I additionally get why […]