You cannot target the internal styles of an element. So there's no way to do it exclusively with CSS unless: a) the styles are inline; or b) you use the hidden HTML attribute to hide elements instead of the CSS display: none.
To select all the elements that don't have an inline style of display: none, you could do something like:
/* You'd need to add different cases for different spaces. A pain. */*:not([style*="display:none"i]){...}
To select all the elements not hidden with the hidden attribute, you could do:
*:not([hidden]){...}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You cannot target the internal styles of an element. So there's no way to do it exclusively with CSS unless: a) the styles are inline; or b) you use the
hidden
HTML attribute to hide elements instead of the CSSdisplay: none
.To select all the elements that don't have an inline style of
display: none
, you could do something like:To select all the elements not hidden with the
hidden
attribute, you could do: