Ancestors

Toot

Written by Johannes Odland on 2024-12-21 at 17:38

It's currently not possible to style a slot based on whether or not it has a slotted element without using javascript.

Todays wish is for a :has-slotted pseudo-class, so that we can conditionally apply styles based on whether the slot has slotted content or not.

https://johannesodland.github.io/2024/12/21/web-wish-21-has-slotted.html

=> More informations about this toot | More toots from johannes@front-end.social

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113692028842289394
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
257.17678 milliseconds
Gemini-to-HTML Time
0.406444 milliseconds

This content has been proxied by September (3851b).