From 5c16336c877512239de714d6cec4ce9805d0edca Mon Sep 17 00:00:00 2001 From: Roman Dvornov Date: Wed, 21 Sep 2016 15:29:11 +0300 Subject: [PATCH] added apple specific font keywords (fixes #20) --- data/patch.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/data/patch.json b/data/patch.json index e268848a..962d085f 100644 --- a/data/patch.json +++ b/data/patch.json @@ -297,7 +297,7 @@ }, "font": { "comment": "wrong quotes", - "syntax": "[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar" + "syntax": "[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar | <-non-standart-font>" }, "font-variant": { "comment": "# should stick to term, missed spaces for function body, trailing space", @@ -604,6 +604,13 @@ "comment": "define to duoble sure it doesn't extends in future https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltshape", "syntax": "circle | ellipse" }, + "-non-standart-font": { + "comment": "non standart fonts", + "preferences": [ + "https://webkit.org/blog/3709/using-the-system-font-in-web-content/" + ], + "syntax": "-apple-system-body | -apple-system-headline | -apple-system-subheadline | -apple-system-caption1 | -apple-system-caption2 | -apple-system-footnote | -apple-system-short-body | -apple-system-short-headline | -apple-system-short-subheadline | -apple-system-short-caption1 | -apple-system-short-footnote | -apple-system-tall-body" + }, "-non-standart-color": { "comment": "non standart colors", "references": [ @@ -710,6 +717,13 @@ "comment": "https://www.w3.org/TR/css3-speech/#voice-family", "syntax": "male | female | neutral" }, + "generic-family": { + "comment": "added -apple-system", + "references": [ + "https://webkit.org/blog/3709/using-the-system-font-in-web-content/" + ], + "syntax": "serif | sans-serif | cursive | fantasy | monospace | -apple-system" + }, "gradient": { "comment": "added -webkit-gradient() since may to be used for legacy support", "syntax": "<-legacy-gradient()> | <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()>"