[css] fix deprecated method usage