Forum How do I...?

Catching parent element using CSS

Balaa
Is there any possibilities to catch the parent element using CSS property?

mikeday
You can use the new :has() selector to match elements with certain children or descendants.
nsnsolutions
Mike, it looks like browser support for the:has() selector is non-existent. Are you saying that Prince will support it for output?
mikeday
Yes, Prince 11 supports the CSS4 Selectors such as :has() and :matches(), among others.
Balaa
Yes, :matches works as well in prince 11
nsnsolutions
Thanks. Prince is badass!