Bramus Van Damme avatar Bramus Van Damme

Using :is() in complex selectors selects more than you might initially think

Screenshot of “Using :is() in complex selectors selects more than you might initially think”

While I wouldn’t write a selector like that myself, this is highly relevant because of CSS Nesting that is getting specified. There, the Nesting Selector (&) desugars to :is().


  1. Do you know good tutorials and/or examples about dealing with responsive images that are fluid horizontaly, but with a fixed height?

    Using object-fit: cover; in the CSS is easy, but how can we prevent loading many pixels that will be hidden, without using too many <source> in a <picture>?