npub1en…vlcmc on Nostr: TIL that you can add "i" to the end of an attribute selector to make it case ...
TIL that you can add "i" to the end of an attribute selector to make it case insensitive🤯
Nice to have when working with CMS-es that generate classes for blocks/webparts in camelCase, like "postBlock", "imageBlock", "youtubeVideoBlock" etc
Knowing this I can now target [class*="youtubevideoblock" i] without having to second-guess the spelling
Like discovering you can write :only-child instead of :first-child:last-child. It's just neat 🤌
Thx to
Manuel Matuzović (npub13dm…lj2t) for the tip!
https://codepen.io/matuzo/pen/jOMOQOq?editors=1100Published at
2024-07-15 07:26:03Event JSON
{
"id": "859ada3c04934b972f411e856e0462d5bfee3d50c1be151c0bccafff115b7fa6",
"pubkey": "cce295477b6fb43447e8b5c4b99324873c690b8e0af8eeffce661b6bb953eca5",
"created_at": 1721028363,
"kind": 1,
"tags": [
[
"p",
"8b768a52af36b3de771234940d2c22b8e0e7654dcac257203fdb7617466913e1"
],
[
"proxy",
"https://mastodon.social/@havardob/112789314813253559",
"web"
],
[
"proxy",
"https://mastodon.social/users/havardob/statuses/112789314813253559",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/havardob/statuses/112789314813253559",
"pink.momostr"
],
[
"-"
]
],
"content": "TIL that you can add \"i\" to the end of an attribute selector to make it case insensitive🤯\n\nNice to have when working with CMS-es that generate classes for blocks/webparts in camelCase, like \"postBlock\", \"imageBlock\", \"youtubeVideoBlock\" etc \n\nKnowing this I can now target [class*=\"youtubevideoblock\" i] without having to second-guess the spelling\n\nLike discovering you can write :only-child instead of :first-child:last-child. It's just neat 🤌 \n\nThx to nostr:npub13dmg5540x6eauacjxj2q6tpzhrswwe2detp9wgplmdmpw3nfz0ssz8lj2t for the tip!\n\nhttps://codepen.io/matuzo/pen/jOMOQOq?editors=1100",
"sig": "1db923ddc3d0c8f803a51d0915d361a1ac8fde691f3a6a3de25192802ff9962324f4074f0e0555bcfa9f850bb10fe1c5d7f6151156e23de461ed3dd2021cf8ce"
}