I want to select only whose parents have display: block and exclude those whose parents have display
display: block
display
No.
There are no selectors which select elements based on the values of properties that apply to them.
I don't think it would be practical for CSS to introduce such a feature either. Imagine:
:has-property-value(display: none) { display: block; }