Track HTML element composite states