add support for cascading rules and display:none