mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-10 12:31:49 +08:00
Follow changes in WD-css-sizing-3-20180304
See also: http://www.w3.org/TR/2018/WD-css-sizing-3-20180304/ This commit also moves `fit-content()` from `css-grid-1.vim`.
This commit is contained in:
@@ -6,4 +6,4 @@ syn keyword cssFontAttr contained grid dense span
|
|||||||
syn match cssFontAttr contained "\<inline-grid\>"
|
syn match cssFontAttr contained "\<inline-grid\>"
|
||||||
syn match cssFontAttr contained "\<auto-flow\>"
|
syn match cssFontAttr contained "\<auto-flow\>"
|
||||||
syn match cssValueNumber contained "[01]\(.\d\+\)\=fr"
|
syn match cssValueNumber contained "[01]\(.\d\+\)\=fr"
|
||||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(minmax\|fit-content\|repeat\)\s*(" end=")" oneline keepend
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(minmax\|repeat\)\s*(" end=")" oneline keepend
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
syn match cssFontAttr contained "\<\(\(min\|max\|fit\)-content\)\>"
|
syn match cssFontAttr contained "\<\(\(min\|max\)-content\)\>"
|
||||||
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(fit-content\)\s*(" end=")" oneline keepend
|
||||||
|
|||||||
@@ -360,7 +360,7 @@
|
|||||||
grid-template-columns: grid;
|
grid-template-columns: grid;
|
||||||
grid-template-rows: inline-grid;
|
grid-template-rows: inline-grid;
|
||||||
grid-template-areas: minmax(0, 1);
|
grid-template-areas: minmax(0, 1);
|
||||||
grid-template: fit-content(10%);
|
grid-template: auto;
|
||||||
grid-auto-rows: repeat(4);
|
grid-auto-rows: repeat(4);
|
||||||
grid-auto-columns: 0.2fr;
|
grid-auto-columns: 0.2fr;
|
||||||
grid-auto-flow: dense;
|
grid-auto-flow: dense;
|
||||||
@@ -712,7 +712,7 @@
|
|||||||
.sizing-3 {
|
.sizing-3 {
|
||||||
display: max-content;
|
display: max-content;
|
||||||
display: min-content;
|
display: min-content;
|
||||||
display: fit-content;
|
display: fit-content(10%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.speech {
|
.speech {
|
||||||
|
|||||||
Reference in New Issue
Block a user