News for hackers. Stuff that matters.
Re:Every HTML Element by 1718627440 on Sunday January 26, 2025 @09:30AM (#42830291)
> The only use case I have for <div> is in a details/summary where there is no CSS to select the contents of a <details> element, excluding the <summary>.

div > *:not(summary)

Re:Every HTML Element by xigoi on Monday January 27, 2025 @06:09AM (#42839735)
This selects all the elements individually, so it behaves differently with attributes like margin or border.
Re:Every HTML Element by 1718627440 on Monday January 27, 2025 @09:27AM (#42841449)
I see. But then that wrapper is actually semantic and thus is eligible for the appropriate element.