mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-08 11:34:45 +08:00
Add css-line-grid-1.vim and test
See also: http://www.w3.org/TR/2014/WD-css-line-grid-1-20140403/
This commit is contained in:
7
after/syntax/css/css-line-grid-1.vim
Normal file
7
after/syntax/css/css-line-grid-1.vim
Normal file
@@ -0,0 +1,7 @@
|
||||
" TODO: create cssLineGridProp and cssLineGridAttr
|
||||
syn match cssFontProp contained "\<line-\(grid\|snap\|slack\)"
|
||||
syn match cssFontProp contained "\<box-snap\>"
|
||||
syn match cssFontAttr contained "\<half-border\>"
|
||||
syn keyword cssFontAttr contained create
|
||||
syn match cssValueNumber contained "\d\+gd"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<round\(down\|up\)\s*(" end=")" oneline keepend
|
||||
@@ -34,6 +34,7 @@ syn include @htmlCss syntax/css/css-counter-styles-3.vim
|
||||
syn include @htmlCss syntax/css/css-display-3.vim
|
||||
syn include @htmlCss syntax/css/css-flexbox-1.vim
|
||||
syn include @htmlCss syntax/css/css-grid-1.vim
|
||||
syn include @htmlCss syntax/css/css-line-grid-1.vim
|
||||
syn include @htmlCss syntax/css/css-lists-3.vim
|
||||
syn include @htmlCss syntax/css/css-masking-1.vim
|
||||
syn include @htmlCss syntax/css/css-overflow-3.vim
|
||||
|
||||
@@ -226,6 +226,14 @@
|
||||
display: same;
|
||||
}
|
||||
|
||||
.line-grid {
|
||||
line-grid: create;
|
||||
line-snap: half-border;
|
||||
line-slack: rounddown(1em);
|
||||
box-snap: roundup(1em);
|
||||
display: 10gd;
|
||||
}
|
||||
|
||||
.linebox {
|
||||
alignment-adjust: central;
|
||||
alignment-baseline: mathematical;
|
||||
|
||||
@@ -236,6 +236,14 @@
|
||||
display: same;
|
||||
}
|
||||
|
||||
.line-grid {
|
||||
line-grid: create;
|
||||
line-snap: half-border;
|
||||
line-slack: rounddown(1em);
|
||||
box-snap: roundup(1em);
|
||||
display: 10gd;
|
||||
}
|
||||
|
||||
.linebox {
|
||||
alignment-adjust: central;
|
||||
alignment-baseline: mathematical;
|
||||
|
||||
Reference in New Issue
Block a user