CSS by T. Afif :verified: on Nostr: And here is the selector for the last occurrence of an element regardless of its ...
And here is the selector for the last occurrence of an element regardless of its position in the document.
Since it's Halloween, you can use this selector to scare JavaScript developers 😈
Some explanation here: https://css-tip.com/last-element-dom/
Help me test it to make sure I am not missing any cases. Here is a npub19qceztjxtkkj8qd6d5x0ya3r9whzyu9yljdv0f6jw8y8v704dxmqd8zcnq (npub19qc…zcnq) demo to start with: https://codepen.io/t_afif/pen/GRVdQqv
#CSS #HTML
Since it's Halloween, you can use this selector to scare JavaScript developers 😈
Some explanation here: https://css-tip.com/last-element-dom/
Help me test it to make sure I am not missing any cases. Here is a npub19qceztjxtkkj8qd6d5x0ya3r9whzyu9yljdv0f6jw8y8v704dxmqd8zcnq (npub19qc…zcnq) demo to start with: https://codepen.io/t_afif/pen/GRVdQqv
#CSS #HTML