styling a parent based on a child

Hey, is it possible to style a parent based on whether it's first child is let's say a paragraph tag for example?
4 Replies
Jochem
Jochem•2y ago
with :has
snxxwyy
snxxwyyOP•2y ago
oh awesome, thank you, i'll look into that now 😄 hm it's not supported on firefox which will make things difficult 😅, do you know if they're planning on adding support there?
Jochem
Jochem•2y ago
they are, but it's going slow definitely one of the most anticipated upcoming features though
snxxwyy
snxxwyyOP•2y ago
yeah it will for sure be a good when it's compatible!

Did you find this page helpful?