use simpler isVisible, more complex one fails in chromium and was overkill anyhow