FrontEnd.ro logo
CSS "Parent" Selector

details:has(ul) {
  padding: 1em;
  border-radius: 3px;
  border: 2px solid navy;
}