support css param as a function