Terribly Federated Mia on Nostr: CSS Working Group resolved to add an nth-item() function, for selecting a value from ...
CSS Working Group resolved to add an nth-item() function, for selecting a value from multiple options. That could be useful in a lot of situations, but i'm excited to combine with sibling-index():
nth-item(sibling-index(), red, orange, yellow, green, …)
#css
Published at
2025-04-01 20:41:43Event JSON
{
"id": "08289371f3481863cb82ed917fd6b3fa1b1b26dc09125ec03d24b175db1f52b1",
"pubkey": "6489f4d566a31e3feac473aa63bd7aca5570979789bb727649e465ce2df1dadf",
"created_at": 1743540103,
"kind": 1,
"tags": [
[
"t",
"css"
],
[
"proxy",
"https://front-end.social/users/mia/statuses/114264644214008672",
"activitypub"
]
],
"content": "CSS Working Group resolved to add an nth-item() function, for selecting a value from multiple options. That could be useful in a lot of situations, but i'm excited to combine with sibling-index():\n\nnth-item(sibling-index(), red, orange, yellow, green, …)\n\n#css",
"sig": "b8953f8d6d277a95b839f00a87107ac024b8a32cb624e3acb78e93016498b84e39b0985bbc018efffa9d44bd67b3accc757adf6becdc8d55737cdc2e87673c22"
}