CSS :has() Examples

If an li has a ul in it, update the parent anchor content to have " ↓".

nav li:has(ul) a:has(+ ul):after {
  content: " ↓";
}