I have a situation where n elements can be present and any can be deleted. But at the point where only one element is present, the deletion should be disabled (ideally
You can't specify it on the parent (DIV.items), but you can on the child (DIV.item) with the :only-child pseudo-class. Since you're styling a descendant of the child here, what you're looking to do is in fact possible: