It seems like elements that are not in the DOM are considered to be hidden, regardless of the CSS applied to those elements
for instance, putting the following in the Chrome console evaluates to false
:
$('<div style="display: block;">i am a div</div>').is(":visible")
Is there any way to check if a detached element like the one above is visible or not. I don't just want to check that display
css property is block
.
$('<div style="display: block;">i am a div</div>').find('div').is(":visible")