Add a filter for invisible style definitions (see #6240)