m_ott’s Twitter Archive
—№ 19,904
⇤ Newest
Tweet
⇠ Newer
Tweet
Older
Tweet
⇢
CSS :has() is so magical. 😍 “If an element with the class
postlist-item
item has a <time> element following an <a> element inside, then style all <h2>’s inside of it…”
Permalink
On twitter.com
♻️ 23
Retweets
❤️ 160
Favorites
2022 Jun 8
Mood +
3
🙂
…in reply to @m_ott
In case you want to learn more about it, I wrote a little bit about :has() recently:
matthiasott.com/notes/css-has-a-parent-selector-now
On twitter.com
♻️ 1
Retweets
❤️ 8
Favorites
2022 Jun 8
Mood +
1
🙂