cljfx/css

Allow multiple rules to be specified for a single key, e.g. @font-face

Closed this issue · 1 comments

CSS allows multiple @font-face rules to be specified, to load several fonts. However this requires some way of specifying multiple rules for a key, or the same key multiple times, which currently isn't supported.

You can use css comments to repeat @font-face rules, e.g.:

{"@font-face /* comic sans */" {:src "local('Comic Sans MS')"}
 "@font-face /* comic code */" {:src "local('Comic Code Ligatures')"}
 ... }