How to parse CSS font shorthand format

前端 未结 4 458
梦谈多话
梦谈多话 2021-01-11 23:19

I need to parse the CSS font shorthand format into the separate components (font-family, font-size, font-weight, ...). This shorthand format looks pretty complicated. Here a

4条回答
  •  自闭症患者
    2021-01-11 23:29

    The parse rules are described in the spec which also has a guide to reading the language used to express the value rules.

提交回复
热议问题