3 ms·
> 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
by 1718627440 2y ago
> 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)
- xigoi 2y agoThis selects all the elements individually, so it behaves differently with attributes like margin or border.
- 1718627440 2y agoI see. But then that wrapper is actually semantic and thus is eligible for the appropriate element.