Check for change before rewriting style tag