<ul>
  <li>
    <input value="Red">
  </li>
  <li>
    <input value="Blue">
  </li>
  <li>
    <input value="Yellow">
  </li>
</ul>
ul:focus-within {
  background-color: red;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.