Manuel Matuzović on Nostr: Styles are scoped to the container within a container query, okay. The color of h2s ...
Published at
2023-11-15 08:12:26Event JSON
{
"id": "68e01952a3cb83486fceaf291ba233817674835138827654ea0fbd7ffa62d274",
"pubkey": "e1ca52b8e11356a8e151f4b791fcd0437c88940bac97469e9258f17a69800c57",
"created_at": 1700035946,
"kind": 1,
"tags": [
[
"p",
"30492e081ac92134f22e290a010bb4b7debaf44cb4e9c67c4353347062d4e62f",
"wss://relay.mostr.pub"
],
[
"p",
"6489f4d566a31e3feac473aa63bd7aca5570979789bb727649e465ce2df1dadf",
"wss://relay.mostr.pub"
],
[
"proxy",
"https://front-end.social/users/matuzo/statuses/111413555801944606",
"activitypub"
]
],
"content": "Styles are scoped to the container within a container query, okay. The color of h2s inside .container is red, fine, but why can I use combinators with ancestor elements inside a container query? That doesn't work in a @scope rule. You'd need a :scope between body and h2.\nIt's a weird mix of conditional styling and scoping. I can't find anything about that in the spec or in blogs.\n\nMMMIIIRRIIIAAAM, HEEEELP!\n\nnostr:npub1xpyjuzq6eysnfu3w9y9qzza5kl0t4azvkn5uvlzr2v68qck5uchspdyjva \n\nhttps://codepen.io/matuzo/pen/bGzoMwX?editors=1100\n\nhttps://cdn.masto.host/frontendsocial/media_attachments/files/111/413/530/591/880/309/original/5d4e34c60b5ddc3e.png",
"sig": "b26f72c12583c8ee403c9560bd163fd8a3462ca7814fc611bb6ff12635d178b844fb24df28c4ae648a5f5a070834a696eab0ad7366519e5fd045e7b58639756d"
}