mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 18:54:25 +08:00
Follow changes in WD-css-fonts-4-20170711
See also: http://www.w3.org/TR/2017/WD-css-fonts-4-20170711/
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
syn match cssFontProp contained "\<font-\(min\|max\)-size\>"
|
||||
syn match cssFontProp contained "\<font-display\>"
|
||||
syn match cssFontProp contained "\<font-optical-sizing\>"
|
||||
syn match cssFontProp contained "\<font-variation-settings\>"
|
||||
syn keyword cssFontAttr contained emoji math fangsong
|
||||
syn match cssFontProp contained "\<font-palette\>"
|
||||
syn match cssFontProp contained "\<font-presentation\>"
|
||||
syn match cssFontProp contained "\<base-palette\>"
|
||||
syn keyword cssFontAttr contained emoji math fangsong infinity swap fallback optional light dark
|
||||
syn match cssFontAttr contained "\<system-ui\>"
|
||||
syn region cssInclude start=/@font-palette-values\>/ end=/\ze{/ skipwhite skipnl contains=css.*Prop,css.*Attr,cssValueInteger,cssValueLength,cssMediaKeyword,cssVendor,cssIncludeKeyword,cssComment nextgroup=cssMediaBlock
|
||||
|
||||
@@ -285,6 +285,9 @@
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.fonts-4 {
|
||||
}
|
||||
|
||||
.fonts-3 {
|
||||
font-feature-settings: common-ligatures;
|
||||
font-kerning: no-common-ligatures;
|
||||
@@ -324,10 +327,20 @@
|
||||
}
|
||||
|
||||
.fonts-4 {
|
||||
font-optical-sizing: emoji;
|
||||
font-variation-settings: math;
|
||||
display: fangsong;
|
||||
display: system-ui;
|
||||
font-min-size: emoji;
|
||||
font-max-size: math;
|
||||
font-display: fangsong;
|
||||
font-optical-sizing: system-ui;
|
||||
font-variation-settings: infinity;
|
||||
font-palette: swap;
|
||||
font-presentation: fallback;
|
||||
display: optional;
|
||||
display: light;
|
||||
display: dark;
|
||||
}
|
||||
|
||||
@font-palette-values Test {
|
||||
base-palette: 1;
|
||||
}
|
||||
|
||||
.gcpm-3::footnote-call,
|
||||
|
||||
@@ -358,10 +358,20 @@
|
||||
</style>
|
||||
<style>
|
||||
.fonts-4 {
|
||||
font-optical-sizing: emoji;
|
||||
font-variation-settings: math;
|
||||
display: fangsong;
|
||||
display: system-ui;
|
||||
font-min-size: emoji;
|
||||
font-max-size: math;
|
||||
font-display: fangsong;
|
||||
font-optical-sizing: system-ui;
|
||||
font-variation-settings: infinity;
|
||||
font-palette: swap;
|
||||
font-presentation: fallback;
|
||||
display: optional;
|
||||
display: light;
|
||||
display: dark;
|
||||
}
|
||||
|
||||
@font-palette-values Test {
|
||||
base-palette: 1;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user