3 ms·
Wow container queries eliminate a whole class of dynamic CSS through js/native DOM! https://www.bram.us/2020/11/05/container-queries-are-coming-to-chromium/ ht
by The_rationalist 6y ago
Wow container queries eliminate a whole class of dynamic CSS through js/native DOM!
https://www.bram.us/2020/11/05/container-queries-are-coming-to-chromium/ https://www.bram.us/2020/11/05/container-queries-are-coming-...
That being said, if only they added a :on-click pseudoselector the biggest class of JS for CSS would disappear and both performance and clarity would be improved. But it doesn't seems that's ever going to happen
- andrei_says_ 6y agoWhy not?
- The_rationalist 6y agoWell I can't find a proposal on the web and the idea is sufficiently basic and fundamental to have been considered by the whatwg/w3c therefore they must have dismissed it for unknown reasons. They might reconsider it too so maybe
- darepublic 6y agoWell there is no Dom state capturing whether something was clicked or not afaik. Whereas something like focus you can query the Dom for
- dbbk 6y agoWhat is a use case for :on-click...? I can't think of one
- 1_player 6y ago:on-click? do you mean :active?