At the moment it is impossible to assign styles to an element based on its descendants. In other words - your task in pure css can not be solved. Most likely, the desired effect can be achieved differently, but no layout to speak about.
Elisabeth.Stamm answered on July 4th 19 at 23:22
Try for a.used to set a negative margin which, when added to the margin of the li will give 0.
Elmer.Upt answered on July 4th 19 at 23:24
Without a complete example and pictures what needs to be accomplished, only telepathy.
All li to specify zero margin.
Then the links to add or not to add additional padding.
Links a.used to add a negative margin.
The second option is not a very pleasant smell. But again, if there's something complex in the design of the links, it may be nothing.