Rebuild css rules on text node changes