🏠
Author: anatudor.bsky.social (did:plc:4hm2yozxzsakerfalloor5s6)

Record🤔

uri:
"at://did:plc:4hm2yozxzsakerfalloor5s6/app.bsky.feed.post/3kniglwf2gd2w"
cid:
"bafyreigsket6tstdklwszeuqrspnzwqbfnwvpzifmtoyluh6kawza2zlhq"
value:
text:
"#tinyCSStip One thing that has always annoyed me about `:empty` is that it doesn't work for elements that have text content, but no element children.

`:has()` fixes this problem.

`:not(:has(*))` selects  elements that don't have element children, even if they have text content."
$type:
"app.bsky.feed.post"
embed:
$type:
"app.bsky.embed.images"
images:
  • alt:
    ":empty {
    	/* only selects elements without element children  
    	 * and without any text content whatsoever, 
    	 * including whitespace */
    }
    
    :not(:has(*)) {
    	/* selects elements without element children, 
    	 * even if they have any kind of text content */
    }"
    image:
    View blob content
    $type:
    "blob"
    ref:
    $link:
    "bafkreihhmvxbytdf373er6lk6eresd7uru6m6mtjfsrqn2awbr6iedzdmq"
    mimeType:
    "image/jpeg"
    size:
    213061
    aspectRatio:
    width:
    1054
    height:
    506
langs:
  • "en"
facets:
  • index:
    byteEnd:
    11
    byteStart:
    0
    features:
    • tag:
      "tinyCSStip"
      $type:
      "app.bsky.richtext.facet#tag"
createdAt:
"2024-03-12T09:18:22.389Z"