Allow stylesheet option to be a function.