def styleNoDisplay(style: dict) ->bool:
    """ check whether the style defines not to display the element """
    return style.get('display', 'inline') == 'none' or style.get('visibility',
        'visible') == 'hidden' or style.get('visibility', 'visible'
        ) == 'collapse'
