The checkVisibility method considers elements with display set to contents as not visible in the page and it is true that the element is not visible, but its children are completely visible. So I simply made the node traversal algorithm also visit the children of elements with node.style.display === 'contents' and it worked.
Description
Resolves #4492.
The
checkVisibility
method considers elements withdisplay
set tocontents
as not visible in the page and it is true that the element is not visible, but its children are completely visible. So I simply made the node traversal algorithm also visit the children of elements withnode.style.display === 'contents'
and it worked.