Compare commits

..

7 Commits

Author SHA1 Message Date
Kyo Nagashima
f815dbb39d Version 0.22.2 2017-05-10 09:00:03 +09:00
Kyo Nagashima
318b4f0a7a Follow changes in CR-css-grid-1-20170509
See also: http://www.w3.org/TR/2017/CR-css-grid-1-20170509/
2017-05-10 08:57:51 +09:00
Kyo Nagashima
b095d6836f Version 0.22.1 2017-04-29 09:38:11 +09:00
Kyo Nagashima
709783ff3c Follow HTML5 spec update
See also: https://html.spec.whatwg.org/multipage/scripting.html#the-slot-element
2017-04-29 09:36:02 +09:00
Kyo Nagashima
0ce18a4fd7 Version 0.22.0 2017-04-22 12:06:06 +09:00
Kyo Nagashima
9f1b8dbb3f Add css-images-4.vim
See also: http://www.w3.org/TR/2017/WD-css-images-4-20170413/

This commit also moves some properties and functions from
`css3-images.vim`.
2017-04-22 12:04:57 +09:00
Kyo Nagashima
4162325b6c Follow changes in WD-css-contain-1-20170419
No changes, see also: http://www.w3.org/TR/2017/WD-css-contain-1-20170419/
2017-04-20 19:15:56 +09:00
7 changed files with 31 additions and 16 deletions

View File

@@ -3,7 +3,7 @@ syn match cssFontProp contained "\<grid-auto-\(columns\|rows\|flow\)\>"
syn match cssFontProp contained "\<grid-\(row\|column\)\(-\(start\|end\)\)\=\>"
syn match cssFontProp contained "\<grid-area\>"
syn match cssFontProp contained "\<grid\(-\(column\|row\)\)\=-gap\>"
syn keyword cssFontAttr contained grid subgrid dense span
syn keyword cssFontAttr contained grid dense span
syn match cssFontAttr contained "\<inline-grid\>"
syn match cssFontAttr contained "\<auto-flow\>"
syn match cssValueNumber contained "[01]\(.\d\+\)\=fr"

View File

@@ -0,0 +1,2 @@
syn match cssFontProp contained "\<image-resolution\>"
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(image\|element\|conic-gradient\)\s*(" end=")" oneline keepend

View File

@@ -1,7 +1,6 @@
" TODO: create cssImagesProp group and cssImagesAttr group
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
syn match cssFontProp contained "\<image-\(resolution\|orientation\)\>"
syn match cssFontProp contained "\<image-orientation\>"
syn keyword cssFontAttr contained contain cover snap
syn match cssFontAttr contained "\<from-image\>"
syn match cssFontAttr contained "\<scale-down\>"
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(image\|\(repeating-\)\=\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(repeating-\)\=\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend

View File

@@ -1 +1 @@
syn keyword cssTagName picture rb rtc template
syn keyword cssTagName picture rb rtc slot template

View File

@@ -16,6 +16,7 @@ syn include @htmlCss syntax/css/css-fonts-3.vim
syn include @htmlCss syntax/css/css-fonts-4.vim
syn include @htmlCss syntax/css/css-gcpm-3.vim
syn include @htmlCss syntax/css/css-grid-1.vim
syn include @htmlCss syntax/css/css-images-4.vim
syn include @htmlCss syntax/css/css-inline-3.vim
syn include @htmlCss syntax/css/css-line-grid-1.vim
syn include @htmlCss syntax/css/css-lists-3.vim

View File

@@ -351,8 +351,8 @@
grid-auto-columns: 0.2fr;
grid-auto-flow: dense;
grid: auto-flow;
grid-row-start: subgrid;
grid-column-start: span;
grid-row-start: span;
grid-column-start: auto;
grid-row-end: auto;
grid-column-end: auto;
grid-column: auto;
@@ -363,19 +363,24 @@
grid-gap: auto;
}
.images {
.images-3 {
object-fit: contain;
object-position: cover;
image-resolution: snap;
image-orientation: scale-down;
image-orientation: snap;
display: scale-down;
display: from-image;
display: image("sprite.svg#xywh=40,0,20,20");
display: linear-gradient(to bottom, yellow, blue);
display: radial-gradient(farthest-corner at 50% 50%, yellow, green);
display: repeating-linear-gradient(to bottom, yellow, blue);
display: repeating-radial-gradient(farthest-corner at 50% 50%, yellow, green);
}
.images-4 {
image-resolution: image("sprite.svg#xywh=40,0,20,20");
display: element(#test);
display: conic-gradient(at 25% 30%, white, black 60%);
}
.inline-3 {
dominant-baseline: mathematical;
alignment-baseline: ideographic;
@@ -813,6 +818,7 @@
picture,
rb,
rtc,
slot,
template {
display: auto;
}

View File

@@ -388,8 +388,8 @@
grid-auto-columns: 0.2fr;
grid-auto-flow: dense;
grid: auto-flow;
grid-row-start: subgrid;
grid-column-start: span;
grid-row-start: span;
grid-column-start: auto;
grid-row-end: auto;
grid-column-end: auto;
grid-column: auto;
@@ -404,10 +404,9 @@
.images {
object-fit: contain;
object-position: cover;
image-resolution: snap;
image-orientation: scale-down;
image-orientation: snap;
display: scale-down;
display: from-image;
display: image("sprite.svg#xywh=40,0,20,20");
display: linear-gradient(to bottom, yellow, blue);
display: radial-gradient(farthest-corner at 50% 50%, yellow, green);
display: repeating-linear-gradient(to bottom, yellow, blue);
@@ -415,6 +414,13 @@
}
</style>
<style>
.images-4 {
image-resolution: image("sprite.svg#xywh=40,0,20,20");
display: element(#test);
display: conic-gradient(at 25% 30%, white, black 60%);
}
</style>
<style>
.inline-3 {
dominant-baseline: mathematical;
alignment-baseline: ideographic;
@@ -895,6 +901,7 @@
picture,
rb,
rtc,
slot,
template {
display: auto;
}