You will have to wait for maven 3. 1 for that, i'm afraid.
This stack overflow page discusses methods to get the parent element by selector in web development.
How do i select the element that is a direct parent of the anchor element?
As an example, my css would be something like this:
Li < a. active { property:
} obviously.