{"id":15,"date":"2026-09-01T09:01:47","date_gmt":"2026-09-01T09:01:47","guid":{"rendered":"http:\/\/syntaxhorror.henix.be\/?p=15"},"modified":"2026-09-01T09:37:15","modified_gmt":"2026-09-01T09:37:15","slug":"the-only-element","status":"publish","type":"post","link":"https:\/\/syntaxhorror.henix.be\/index.php\/2026\/09\/01\/the-only-element\/","title":{"rendered":"The only element"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">That is one way to check if it&#8217;s the only element, being the first and last child at the same time\u2026 <\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"SCSS\" data-shcb-language-slug=\"scss\"><span><code class=\"hljs language-scss shcb-code-table\"><span class='shcb-loc'><span><span class=\"hljs-selector-class\">.o-inline<\/span> {\n<\/span><\/span><mark class='shcb-loc'><span>    &amp;:where(:has(i:first-child:last-child)) {\n<\/span><\/mark><span class='shcb-loc'><span>        opacity: var(--o-mail-ActionList-Button-opacity);\n<\/span><\/span><span class='shcb-loc'><span>    }\n<\/span><\/span><span class='shcb-loc'><span>}\n<\/span><\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">SCSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">scss<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>","protected":false},"excerpt":{"rendered":"<p>That is one way to check if it&#8217;s the only element, being the first and last child at the same time\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/syntaxhorror.henix.be\/index.php\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/syntaxhorror.henix.be\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/syntaxhorror.henix.be\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/syntaxhorror.henix.be\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/syntaxhorror.henix.be\/index.php\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":19,"href":"https:\/\/syntaxhorror.henix.be\/index.php\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":40,"href":"https:\/\/syntaxhorror.henix.be\/index.php\/wp-json\/wp\/v2\/posts\/15\/revisions\/40"}],"wp:attachment":[{"href":"https:\/\/syntaxhorror.henix.be\/index.php\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/syntaxhorror.henix.be\/index.php\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/syntaxhorror.henix.be\/index.php\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}