Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

LOL this is so cool

Check this out

  ```css

  figure:has(input[type="checkbox"]:checked) figcaption {
    /\* if a figure has a checkbox checked, 
    apply this to its figcaption... \*/
    font-size: 90%;
    font-style: italic;
    margin: 0.6rem 0 0.1rem;
  }

  ```
https://codepen.io/julienreszka/pen/yLKZRRX



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: