3 ms·
LOL this is so cool Check this out ```css figure:has(input[type="checkbox"]:checked) figcaption { /\* if a figure has a checkbox checked, apply
by julienreszka 4y ago
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 https://codepen.io/julienreszka/pen/yLKZRRX