fixes for faster custom css rendering