Now detects children and css rules