Re:Modern Javascript: Everything you missed over the last 10...
by willhoyle on Sunday May 16, 2021 @10:34AM
(#27173987)
https://github.com/marcj/css-element-queries
I’ve had pretty decent success using this library.
[1] - https://css-tricks.com/say-hello-to-css-container-queries/