ppk 🇪🇺 on Nostr: #css :has()-related insight of the day: div:has(h2,p) is an OR div:has(h2):has(p) is ...
#css :has()-related insight of the day:
div:has(h2,p) is an OR
div:has(h2):has(p) is an AND
The first selects all divs that contain an h2 or a p or both.
The second selects all divs that contain both an h2 and a p.
Published at
2023-08-20 10:49:53Event JSON
{
"id": "3e648a04c58de820d44d2bb1e10d0e5aab9e78586605c000fcc45c73618de97f",
"pubkey": "f9cf69496936f607575b8b34cdda30cc5b7176799e9cfc492c226c815ce7604a",
"created_at": 1692528593,
"kind": 1,
"tags": [
[
"t",
"css"
],
[
"proxy",
"https://front-end.social/users/ppk/statuses/110921553917619657",
"activitypub"
]
],
"content": "#css :has()-related insight of the day:\n\ndiv:has(h2,p) is an OR\ndiv:has(h2):has(p) is an AND\n\nThe first selects all divs that contain an h2 or a p or both.\n\nThe second selects all divs that contain both an h2 and a p.",
"sig": "5d1f5278bc6f663457b4dd2525141da435db7fc349e845aee36e3089975a9d412c0d23ee41df8842462bfa2a365498d1adb05ff70c4d4be3df39257b47e68b6c"
}