I'm a Systems Reliability and DevOps engineer for Netdata Inc. When not working, I enjoy studying linguistics and history, playing video games, and cooking all kinds of international cuisine.
I think the answer is that we need a better definition of 'visible' versus 'hidden'.
The problem is, there's no easy definition, because:
Elements can have no layout box, but still be rendered (such as your display: contents example).
Elements can have a layout box, but not actually show anything (such as an element with opacity: 0).
It's technically dependent on the media type and the attributes of the element, not just the styling. An element marked as hidden using ARIA attributes is not 'visible' if a screen reader is being used for example.
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.
I think the answer is that we need a better definition of 'visible' versus 'hidden'.
The problem is, there's no easy definition, because:
display: contents
example).opacity: 0
).