Font size can have any values as suggested here. If the input is a number then it will be treated as pixel, Other values are inserted as it is. Make sure you pass the correct input.
number
pixel