At this moment, the current CSS standard does not have a built-in selector for this specific task. There is speculation that CSS4
might introduce one in the future, but that remains uncertain for now. For the time being, achieving this behavior is possible through JavaScript or jQuery.
It's important to acknowledge that IDs must be unique within a document. If you need to use the same identifier multiple times, utilizing classes is recommended.
In jQuery, the filter
method can be employed to address this issue effectively.
var smallDivs = $(".test-div").filter(function() {
return $(this).css("height") < 400;
});
Alternatively, this functionality may also be achievable in SASS by creating custom functions.