mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-09 03:54:46 +08:00
Compare commits
27 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dcb96c01ca | ||
|
|
fa194bb638 | ||
|
|
ff32d693f5 | ||
|
|
63de9cc2f7 | ||
|
|
912bb8944f | ||
|
|
1efb945868 | ||
|
|
da08f55d67 | ||
|
|
d51d95c7fe | ||
|
|
e58e59dd42 | ||
|
|
05a535f954 | ||
|
|
789b3fa6e8 | ||
|
|
c3c6083d44 | ||
|
|
d8fcec92e3 | ||
|
|
092f7c3c67 | ||
|
|
ff05f0f5eb | ||
|
|
f815dbb39d | ||
|
|
318b4f0a7a | ||
|
|
b095d6836f | ||
|
|
709783ff3c | ||
|
|
0ce18a4fd7 | ||
|
|
9f1b8dbb3f | ||
|
|
4162325b6c | ||
|
|
935b51f9b3 | ||
|
|
708f7afb01 | ||
|
|
7bfab47011 | ||
|
|
2d8e5a3711 | ||
|
|
8e6268701f |
@@ -1,4 +1,2 @@
|
|||||||
" TODO: create cssDisplayProp group and cssDisplayAttr group
|
|
||||||
syn keyword cssFontAttr contained contents discard
|
syn keyword cssFontAttr contained contents discard
|
||||||
syn match cssFontAttr contained "\<flow\(-root\)\=\>"
|
syn match cssFontAttr contained "\<flow\(-root\)\=\>"
|
||||||
syn match cssFontAttr contained "\<inline-list-item\>"
|
|
||||||
|
|||||||
@@ -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-optical-sizing\>"
|
||||||
syn match cssFontProp contained "\<font-variation-settings\>"
|
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 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
|
||||||
|
|||||||
@@ -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-\(row\|column\)\(-\(start\|end\)\)\=\>"
|
||||||
syn match cssFontProp contained "\<grid-area\>"
|
syn match cssFontProp contained "\<grid-area\>"
|
||||||
syn match cssFontProp contained "\<grid\(-\(column\|row\)\)\=-gap\>"
|
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 "\<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"
|
||||||
|
|||||||
2
after/syntax/css/css-images-4.vim
Normal file
2
after/syntax/css/css-images-4.vim
Normal 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
|
||||||
5
after/syntax/css/css-logical-1.vim
Normal file
5
after/syntax/css/css-logical-1.vim
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
syn match cssFontProp contained "\<\(\(min\|max\)-\)\=\(block\|inline\)-size\>"
|
||||||
|
syn match cssFontProp contained "\<\(margin\|inset\|padding\)\(-\(block\|inline\)\(-\(start\|end\)\)\=\)\=\>"
|
||||||
|
syn match cssFontProp contained "\<border-\(block\|inline\)\(\(-\(start\|end\)\)\=\(-\(width\|style\|color\)\)\=\)\=\>"
|
||||||
|
syn match cssFontProp contained "\<\(background\|border\)-image-transform\>"
|
||||||
|
syn keyword cssFontAttr contained logical physical rotate
|
||||||
4
after/syntax/css/css-overflow-4.vim
Normal file
4
after/syntax/css/css-overflow-4.vim
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
syn keyword cssFontProp contained continue
|
||||||
|
syn match cssFontProp contained "\<scrollbar-gutter\>"
|
||||||
|
syn keyword cssFontAttr contained stable force overflow paginate fragments
|
||||||
|
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(nth-fragment\)(" end=")" oneline
|
||||||
@@ -2,7 +2,8 @@ syn keyword cssTextProp contained hyphens
|
|||||||
syn match cssTextProp contained "\<line-break\>"
|
syn match cssTextProp contained "\<line-break\>"
|
||||||
syn match cssTextProp contained "\<overflow-wrap\>"
|
syn match cssTextProp contained "\<overflow-wrap\>"
|
||||||
syn match cssTextProp contained "\<tab-size\>"
|
syn match cssTextProp contained "\<tab-size\>"
|
||||||
syn keyword cssTextAttr contained manual loose strict hanging
|
syn match cssTextProp contained "\<text-align-all\>"
|
||||||
|
syn keyword cssTextAttr contained manual loose strict hanging anywhere
|
||||||
syn match cssTextAttr contained "\<match-parent\>"
|
syn match cssTextAttr contained "\<match-parent\>"
|
||||||
syn match cssTextAttr contained "\<each-line\>"
|
syn match cssTextAttr contained "\<each-line\>"
|
||||||
syn match cssTextAttr contained "\<full-width\>"
|
syn match cssTextAttr contained "\<full-width\>"
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
" TODO: create cssImagesProp group and cssImagesAttr group
|
|
||||||
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
|
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 keyword cssFontAttr contained contain cover snap
|
||||||
syn match cssFontAttr contained "\<from-image\>"
|
syn match cssFontAttr contained "\<from-image\>"
|
||||||
syn match cssFontAttr contained "\<scale-down\>"
|
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
|
||||||
|
|||||||
5
after/syntax/css/fill-stroke-3.vim
Normal file
5
after/syntax/css/fill-stroke-3.vim
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
syn match cssFontProp contained "\<\(fill\|stroke\)\(-\(break\|color\|image\|origin\|position\|size\|repeat\|opacity\)\)\=\>"
|
||||||
|
syn match cssFontProp contained "\<fill-rule\>"
|
||||||
|
syn match cssFontProp contained "\<stroke-\(width\|align\|line\(cap\|join\)\|miterlimit\|dash\(array\|offset\)\|dash-\(corner\|justify\)\)\>"
|
||||||
|
syn keyword cssFontAttr contained butt arcs stupid compress dashes gaps
|
||||||
|
syn match cssFontAttr contained "\<bounding-box\>"
|
||||||
@@ -1 +1 @@
|
|||||||
syn keyword cssTagName picture rb rtc template
|
syn keyword cssTagName picture rb rtc slot template
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
syn match cssFontProp contained "\<motion\(-\(path\|offset\|rotation\)\)\=\>"
|
syn match cssFontProp contained "\<offset\(-\(path\|distance\|anchor\|rotate\)\)\=\>"
|
||||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<path\s*(" end=")" oneline keepend
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(ray\|path\)\s*(" end=")" oneline keepend
|
||||||
|
|||||||
@@ -2,19 +2,16 @@ syn keyword cssTagName animate animateMotion animateTransform circle clipPath cu
|
|||||||
|
|
||||||
syn keyword cssFontProp contained cx cy d r rx ry x y
|
syn keyword cssFontProp contained cx cy d r rx ry x y
|
||||||
syn match cssFontProp contained "\<color-\(interpolation\|rendering\)\>"
|
syn match cssFontProp contained "\<color-\(interpolation\|rendering\)\>"
|
||||||
syn match cssFontProp contained "\<fill\(-\(opacity\|rule\)\)\=\>"
|
|
||||||
syn match cssFontProp contained "\<image-rendering\>"
|
syn match cssFontProp contained "\<image-rendering\>"
|
||||||
syn match cssFontProp contained "\<marker-\(end\|mid\|start\)\>"
|
syn match cssFontProp contained "\<marker-\(end\|mid\|start\)\>"
|
||||||
syn match cssFontProp contained "\<pointer-events\>"
|
syn match cssFontProp contained "\<pointer-events\>"
|
||||||
syn match cssFontProp contained "\<shape-rendering\>"
|
syn match cssFontProp contained "\<shape-rendering\>"
|
||||||
syn match cssFontProp contained "\<solid-\(color\|opacity\)\>"
|
syn match cssFontProp contained "\<solid-\(color\|opacity\)\>"
|
||||||
syn match cssFontProp contained "\<stop-\(color\|opacity\)\>"
|
syn match cssFontProp contained "\<stop-\(color\|opacity\)\>"
|
||||||
syn match cssFontProp contained "\<stroke\(-\(dash\(array\|offset\)\|line\(cap\|join\)\|miterlimit\|opacity\|width\)\)\=\>"
|
|
||||||
syn match cssFontProp contained "\<text-anchor\>"
|
syn match cssFontProp contained "\<text-anchor\>"
|
||||||
syn match cssFontProp contained "\<vector-effect\>"
|
syn match cssFontProp contained "\<vector-effect\>"
|
||||||
|
|
||||||
syn keyword cssFontAttr contained arcs butt crispEdges geometricPrecision optimizeQuality painted stroke viewport visibleFill visiblePainted visibleStroke
|
syn keyword cssFontAttr contained crispEdges geometricPrecision optimizeQuality painted stroke viewport visibleFill visiblePainted visibleStroke
|
||||||
syn match cssFontAttr contained "\<bounding-box\>"
|
|
||||||
syn match cssFontAttr contained "\<context-\(fill\|stroke\)\>"
|
syn match cssFontAttr contained "\<context-\(fill\|stroke\)\>"
|
||||||
syn match cssFontAttr contained "\<fixed-position\>"
|
syn match cssFontAttr contained "\<fixed-position\>"
|
||||||
syn match cssFontAttr contained "\<miter\(-clip\)\=\>"
|
syn match cssFontAttr contained "\<miter\(-clip\)\=\>"
|
||||||
|
|||||||
@@ -16,11 +16,14 @@ syn include @htmlCss syntax/css/css-fonts-3.vim
|
|||||||
syn include @htmlCss syntax/css/css-fonts-4.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-gcpm-3.vim
|
||||||
syn include @htmlCss syntax/css/css-grid-1.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-inline-3.vim
|
||||||
syn include @htmlCss syntax/css/css-line-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-lists-3.vim
|
||||||
|
syn include @htmlCss syntax/css/css-logical-1.vim
|
||||||
syn include @htmlCss syntax/css/css-masking-1.vim
|
syn include @htmlCss syntax/css/css-masking-1.vim
|
||||||
syn include @htmlCss syntax/css/css-overflow-3.vim
|
syn include @htmlCss syntax/css/css-overflow-3.vim
|
||||||
|
syn include @htmlCss syntax/css/css-overflow-4.vim
|
||||||
syn include @htmlCss syntax/css/css-page-floats-3.vim
|
syn include @htmlCss syntax/css/css-page-floats-3.vim
|
||||||
syn include @htmlCss syntax/css/css-paint-api-1.vim
|
syn include @htmlCss syntax/css/css-paint-api-1.vim
|
||||||
syn include @htmlCss syntax/css/css-position-3.vim
|
syn include @htmlCss syntax/css/css-position-3.vim
|
||||||
@@ -62,6 +65,7 @@ syn include @htmlCss syntax/css/css3-speech.vim
|
|||||||
syn include @htmlCss syntax/css/css3-transitions.vim
|
syn include @htmlCss syntax/css/css3-transitions.vim
|
||||||
syn include @htmlCss syntax/css/cssom-1.vim
|
syn include @htmlCss syntax/css/cssom-1.vim
|
||||||
syn include @htmlCss syntax/css/cssom-view-1.vim
|
syn include @htmlCss syntax/css/cssom-view-1.vim
|
||||||
|
syn include @htmlCss syntax/css/fill-stroke-3.vim
|
||||||
syn include @htmlCss syntax/css/filter-effects-1.vim
|
syn include @htmlCss syntax/css/filter-effects-1.vim
|
||||||
syn include @htmlCss syntax/css/geometry-1.vim
|
syn include @htmlCss syntax/css/geometry-1.vim
|
||||||
syn include @htmlCss syntax/css/html5.vim
|
syn include @htmlCss syntax/css/html5.vim
|
||||||
|
|||||||
174
test/test.css
174
test/test.css
@@ -214,7 +214,6 @@
|
|||||||
display: flow;
|
display: flow;
|
||||||
display: flow-root;
|
display: flow-root;
|
||||||
display: contents;
|
display: contents;
|
||||||
display: inline-list-item;
|
|
||||||
display: discard;
|
display: discard;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -223,6 +222,37 @@
|
|||||||
wrap-through: maximum;
|
wrap-through: maximum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fill-stroke-3 {
|
||||||
|
fill-rule: butt;
|
||||||
|
fill-break: arcs;
|
||||||
|
fill-color: stupid;
|
||||||
|
fill-image: compress;
|
||||||
|
fill-origin: dashes;
|
||||||
|
fill-position: gaps;
|
||||||
|
fill-size: bounding-box;
|
||||||
|
fill-repeat: auto;
|
||||||
|
fill: auto;
|
||||||
|
fill-opacity: auto;
|
||||||
|
stroke-width: auto;
|
||||||
|
stroke-align: auto;
|
||||||
|
stroke-linecap: auto;
|
||||||
|
stroke-linejoin: auto;
|
||||||
|
stroke-miterlimit: auto;
|
||||||
|
stroke-break: auto;
|
||||||
|
stroke-dasharray: auto;
|
||||||
|
stroke-dashoffset: auto;
|
||||||
|
stroke-dash-corner: auto;
|
||||||
|
stroke-dash-justify: auto;
|
||||||
|
stroke-color: auto;
|
||||||
|
stroke-image: auto;
|
||||||
|
stroke-origin: auto;
|
||||||
|
stroke-position: auto;
|
||||||
|
stroke-size: auto;
|
||||||
|
stroke-repeat: auto;
|
||||||
|
stroke: auto;
|
||||||
|
stroke-opacity: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.filter-effects-1 {
|
.filter-effects-1 {
|
||||||
flood-color: sRGB;
|
flood-color: sRGB;
|
||||||
flood-opacity: linearRGB;
|
flood-opacity: linearRGB;
|
||||||
@@ -254,6 +284,9 @@
|
|||||||
display: auto;
|
display: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fonts-4 {
|
||||||
|
}
|
||||||
|
|
||||||
.fonts-3 {
|
.fonts-3 {
|
||||||
font-feature-settings: common-ligatures;
|
font-feature-settings: common-ligatures;
|
||||||
font-kerning: no-common-ligatures;
|
font-kerning: no-common-ligatures;
|
||||||
@@ -293,10 +326,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fonts-4 {
|
.fonts-4 {
|
||||||
font-optical-sizing: emoji;
|
font-min-size: emoji;
|
||||||
font-variation-settings: math;
|
font-max-size: math;
|
||||||
display: fangsong;
|
font-display: fangsong;
|
||||||
display: system-ui;
|
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,
|
.gcpm-3::footnote-call,
|
||||||
@@ -320,8 +363,8 @@
|
|||||||
grid-auto-columns: 0.2fr;
|
grid-auto-columns: 0.2fr;
|
||||||
grid-auto-flow: dense;
|
grid-auto-flow: dense;
|
||||||
grid: auto-flow;
|
grid: auto-flow;
|
||||||
grid-row-start: subgrid;
|
grid-row-start: span;
|
||||||
grid-column-start: span;
|
grid-column-start: auto;
|
||||||
grid-row-end: auto;
|
grid-row-end: auto;
|
||||||
grid-column-end: auto;
|
grid-column-end: auto;
|
||||||
grid-column: auto;
|
grid-column: auto;
|
||||||
@@ -332,19 +375,24 @@
|
|||||||
grid-gap: auto;
|
grid-gap: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.images {
|
.images-3 {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
object-position: cover;
|
object-position: cover;
|
||||||
image-resolution: snap;
|
image-orientation: snap;
|
||||||
image-orientation: scale-down;
|
display: scale-down;
|
||||||
display: from-image;
|
display: from-image;
|
||||||
display: image("sprite.svg#xywh=40,0,20,20");
|
|
||||||
display: linear-gradient(to bottom, yellow, blue);
|
display: linear-gradient(to bottom, yellow, blue);
|
||||||
display: radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
display: radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
||||||
display: repeating-linear-gradient(to bottom, yellow, blue);
|
display: repeating-linear-gradient(to bottom, yellow, blue);
|
||||||
display: repeating-radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
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 {
|
.inline-3 {
|
||||||
dominant-baseline: mathematical;
|
dominant-baseline: mathematical;
|
||||||
alignment-baseline: ideographic;
|
alignment-baseline: ideographic;
|
||||||
@@ -366,6 +414,60 @@
|
|||||||
display: auto;
|
display: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logical-1 {
|
||||||
|
block-size: logical;
|
||||||
|
inline-size: physical;
|
||||||
|
min-block-size: rotate;
|
||||||
|
min-inline-size: auto;
|
||||||
|
max-block-size: auto;
|
||||||
|
max-inline-size: auto;
|
||||||
|
margin-block-start: auto;
|
||||||
|
margin-block-end: auto;
|
||||||
|
margin-inline-start: auto;
|
||||||
|
margin-inline-end: auto;
|
||||||
|
margin-block: auto;
|
||||||
|
margin-inline: auto;
|
||||||
|
inset-block-start: auto;
|
||||||
|
inset-block-end: auto;
|
||||||
|
inset-inline-start: auto;
|
||||||
|
inset-inline-end: auto;
|
||||||
|
inset-block: auto;
|
||||||
|
inset-inline: auto;
|
||||||
|
inset: auto;
|
||||||
|
padding-block-start: auto;
|
||||||
|
padding-block-end: auto;
|
||||||
|
padding-inline-start: auto;
|
||||||
|
padding-inline-end: auto;
|
||||||
|
padding-block: auto;
|
||||||
|
padding-inline: auto;
|
||||||
|
border-block-start-width: auto;
|
||||||
|
border-block-end-width: auto;
|
||||||
|
border-inline-start-width: auto;
|
||||||
|
border-inline-end-width: auto;
|
||||||
|
border-block-width: auto;
|
||||||
|
border-inline-width: auto;
|
||||||
|
border-block-start-style: auto;
|
||||||
|
border-block-end-style: auto;
|
||||||
|
border-inline-start-style: auto;
|
||||||
|
border-inline-end-style: auto;
|
||||||
|
border-block-style: auto;
|
||||||
|
border-inline-style: auto;
|
||||||
|
border-block-start-color: auto;
|
||||||
|
border-block-end-color: auto;
|
||||||
|
border-inline-start-color: auto;
|
||||||
|
border-inline-end-color: auto;
|
||||||
|
border-block-color: auto;
|
||||||
|
border-inline-color: auto;
|
||||||
|
border-block-start: auto;
|
||||||
|
border-block-end: auto;
|
||||||
|
border-inline-start: auto;
|
||||||
|
border-inline-end: auto;
|
||||||
|
border-block: auto;
|
||||||
|
border-inline: auto;
|
||||||
|
background-image-transform: auto;
|
||||||
|
border-image-transform: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.masking-1 {
|
.masking-1 {
|
||||||
clip-path: fill-box;
|
clip-path: fill-box;
|
||||||
clip-rule: stroke-box;
|
clip-rule: stroke-box;
|
||||||
@@ -389,10 +491,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.motion-1 {
|
.motion-1 {
|
||||||
motion-path: path(M 100 100 L 300 100 L 200 300 z);
|
offset-path: ray(45deg closest-side);
|
||||||
motion-offset: auto;
|
offset-distance: path(M 100 100 L 300 100 L 200 300 z);
|
||||||
motion-rotation: auto;
|
offset-anchor: auto;
|
||||||
motion: auto;
|
offset-rotate: auto;
|
||||||
|
offset: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.multicol {
|
.multicol {
|
||||||
@@ -414,6 +517,14 @@
|
|||||||
max-lines: auto;
|
max-lines: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.overflow-4::nth-fragment(1) {
|
||||||
|
scrollbar-gutter: stable;
|
||||||
|
continue: force;
|
||||||
|
display: overflow;
|
||||||
|
display: paginate;
|
||||||
|
display: fragments;
|
||||||
|
}
|
||||||
|
|
||||||
.page {
|
.page {
|
||||||
display: avoid-page;
|
display: avoid-page;
|
||||||
display: page;
|
display: page;
|
||||||
@@ -635,9 +746,10 @@
|
|||||||
line-break: loose;
|
line-break: loose;
|
||||||
overflow-wrap: strict;
|
overflow-wrap: strict;
|
||||||
tab-size: match-parent;
|
tab-size: match-parent;
|
||||||
display: hanging;
|
text-align-all: hanging;
|
||||||
display: each-line;
|
display: each-line;
|
||||||
display: full-width;
|
display: full-width;
|
||||||
|
display: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-4 {
|
.text-4 {
|
||||||
@@ -782,6 +894,7 @@
|
|||||||
picture,
|
picture,
|
||||||
rb,
|
rb,
|
||||||
rtc,
|
rtc,
|
||||||
|
slot,
|
||||||
template {
|
template {
|
||||||
display: auto;
|
display: auto;
|
||||||
}
|
}
|
||||||
@@ -854,18 +967,15 @@ tspan,
|
|||||||
unknown,
|
unknown,
|
||||||
use,
|
use,
|
||||||
view {
|
view {
|
||||||
color-interpolation: arcs;
|
color-interpolation: crispEdges;
|
||||||
color-rendering: butt;
|
color-rendering: geometricPrecision;
|
||||||
cx: crispEdges;
|
cx: optimizeQuality;
|
||||||
cy: geometricPrecision;
|
cy: painted;
|
||||||
d: optimizeQuality;
|
d: visiblePainted;
|
||||||
fill-opacity: painted;
|
|
||||||
fill-rule: stroke;
|
|
||||||
fill: viewport;
|
|
||||||
image-rendering: visibleFill;
|
image-rendering: visibleFill;
|
||||||
marker-end: visiblePainted;
|
marker-end: stroke;
|
||||||
marker-mid: visibleStroke;
|
marker-mid: viewport;
|
||||||
marker-start: bounding-box;
|
marker-start: visibleStroke;
|
||||||
pointer-events: context-fill;
|
pointer-events: context-fill;
|
||||||
r: context-stroke;
|
r: context-stroke;
|
||||||
rx: fixed-position;
|
rx: fixed-position;
|
||||||
@@ -875,15 +985,7 @@ view {
|
|||||||
solid-opacity: non-scaling-size;
|
solid-opacity: non-scaling-size;
|
||||||
stop-color: non-rotation;
|
stop-color: non-rotation;
|
||||||
stop-opacity: child(1);
|
stop-opacity: child(1);
|
||||||
stroke-dasharray: icc-color(foo);
|
text-anchor: icc-color(foo);
|
||||||
stroke-dashoffset: auto;
|
|
||||||
stroke-linecap: auto;
|
|
||||||
stroke-linejoin: auto;
|
|
||||||
stroke-miterlimit: auto;
|
|
||||||
stroke-opacity: auto;
|
|
||||||
stroke-width: auto;
|
|
||||||
stroke: auto;
|
|
||||||
text-anchor: auto;
|
|
||||||
vector-effect: auto;
|
vector-effect: auto;
|
||||||
x: auto;
|
x: auto;
|
||||||
y: auto;
|
y: auto;
|
||||||
|
|||||||
173
test/test.html
173
test/test.html
@@ -241,7 +241,6 @@
|
|||||||
display: flow;
|
display: flow;
|
||||||
display: flow-root;
|
display: flow-root;
|
||||||
display: contents;
|
display: contents;
|
||||||
display: inline-list-item;
|
|
||||||
display: discard;
|
display: discard;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -252,6 +251,38 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
|
.fill-stroke-3 {
|
||||||
|
fill-rule: butt;
|
||||||
|
fill-break: arcs;
|
||||||
|
fill-color: stupid;
|
||||||
|
fill-image: compress;
|
||||||
|
fill-origin: dashes;
|
||||||
|
fill-position: gaps;
|
||||||
|
fill-size: bounding-box;
|
||||||
|
fill-repeat: auto;
|
||||||
|
fill: auto;
|
||||||
|
fill-opacity: auto;
|
||||||
|
stroke-width: auto;
|
||||||
|
stroke-align: auto;
|
||||||
|
stroke-linecap: auto;
|
||||||
|
stroke-linejoin: auto;
|
||||||
|
stroke-miterlimit: auto;
|
||||||
|
stroke-break: auto;
|
||||||
|
stroke-dasharray: auto;
|
||||||
|
stroke-dashoffset: auto;
|
||||||
|
stroke-dash-corner: auto;
|
||||||
|
stroke-dash-justify: auto;
|
||||||
|
stroke-color: auto;
|
||||||
|
stroke-image: auto;
|
||||||
|
stroke-origin: auto;
|
||||||
|
stroke-position: auto;
|
||||||
|
stroke-size: auto;
|
||||||
|
stroke-repeat: auto;
|
||||||
|
stroke: auto;
|
||||||
|
stroke-opacity: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
.filter-effects-1 {
|
.filter-effects-1 {
|
||||||
flood-color: sRGB;
|
flood-color: sRGB;
|
||||||
flood-opacity: linearRGB;
|
flood-opacity: linearRGB;
|
||||||
@@ -326,10 +357,20 @@
|
|||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.fonts-4 {
|
.fonts-4 {
|
||||||
font-optical-sizing: emoji;
|
font-min-size: emoji;
|
||||||
font-variation-settings: math;
|
font-max-size: math;
|
||||||
display: fangsong;
|
font-display: fangsong;
|
||||||
display: system-ui;
|
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>
|
||||||
<style>
|
<style>
|
||||||
@@ -356,8 +397,8 @@
|
|||||||
grid-auto-columns: 0.2fr;
|
grid-auto-columns: 0.2fr;
|
||||||
grid-auto-flow: dense;
|
grid-auto-flow: dense;
|
||||||
grid: auto-flow;
|
grid: auto-flow;
|
||||||
grid-row-start: subgrid;
|
grid-row-start: span;
|
||||||
grid-column-start: span;
|
grid-column-start: auto;
|
||||||
grid-row-end: auto;
|
grid-row-end: auto;
|
||||||
grid-column-end: auto;
|
grid-column-end: auto;
|
||||||
grid-column: auto;
|
grid-column: auto;
|
||||||
@@ -372,10 +413,9 @@
|
|||||||
.images {
|
.images {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
object-position: cover;
|
object-position: cover;
|
||||||
image-resolution: snap;
|
image-orientation: snap;
|
||||||
image-orientation: scale-down;
|
display: scale-down;
|
||||||
display: from-image;
|
display: from-image;
|
||||||
display: image("sprite.svg#xywh=40,0,20,20");
|
|
||||||
display: linear-gradient(to bottom, yellow, blue);
|
display: linear-gradient(to bottom, yellow, blue);
|
||||||
display: radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
display: radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
||||||
display: repeating-linear-gradient(to bottom, yellow, blue);
|
display: repeating-linear-gradient(to bottom, yellow, blue);
|
||||||
@@ -383,6 +423,13 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<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 {
|
.inline-3 {
|
||||||
dominant-baseline: mathematical;
|
dominant-baseline: mathematical;
|
||||||
alignment-baseline: ideographic;
|
alignment-baseline: ideographic;
|
||||||
@@ -430,11 +477,67 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
|
.logical-1 {
|
||||||
|
block-size: logical;
|
||||||
|
inline-size: physical;
|
||||||
|
min-block-size: rotate;
|
||||||
|
min-inline-size: auto;
|
||||||
|
max-block-size: auto;
|
||||||
|
max-inline-size: auto;
|
||||||
|
margin-block-start: auto;
|
||||||
|
margin-block-end: auto;
|
||||||
|
margin-inline-start: auto;
|
||||||
|
margin-inline-end: auto;
|
||||||
|
margin-block: auto;
|
||||||
|
margin-inline: auto;
|
||||||
|
inset-block-start: auto;
|
||||||
|
inset-block-end: auto;
|
||||||
|
inset-inline-start: auto;
|
||||||
|
inset-inline-end: auto;
|
||||||
|
inset-block: auto;
|
||||||
|
inset-inline: auto;
|
||||||
|
inset: auto;
|
||||||
|
padding-block-start: auto;
|
||||||
|
padding-block-end: auto;
|
||||||
|
padding-inline-start: auto;
|
||||||
|
padding-inline-end: auto;
|
||||||
|
padding-block: auto;
|
||||||
|
padding-inline: auto;
|
||||||
|
border-block-start-width: auto;
|
||||||
|
border-block-end-width: auto;
|
||||||
|
border-inline-start-width: auto;
|
||||||
|
border-inline-end-width: auto;
|
||||||
|
border-block-width: auto;
|
||||||
|
border-inline-width: auto;
|
||||||
|
border-block-start-style: auto;
|
||||||
|
border-block-end-style: auto;
|
||||||
|
border-inline-start-style: auto;
|
||||||
|
border-inline-end-style: auto;
|
||||||
|
border-block-style: auto;
|
||||||
|
border-inline-style: auto;
|
||||||
|
border-block-start-color: auto;
|
||||||
|
border-block-end-color: auto;
|
||||||
|
border-inline-start-color: auto;
|
||||||
|
border-inline-end-color: auto;
|
||||||
|
border-block-color: auto;
|
||||||
|
border-inline-color: auto;
|
||||||
|
border-block-start: auto;
|
||||||
|
border-block-end: auto;
|
||||||
|
border-inline-start: auto;
|
||||||
|
border-inline-end: auto;
|
||||||
|
border-block: auto;
|
||||||
|
border-inline: auto;
|
||||||
|
background-image-transform: auto;
|
||||||
|
border-image-transform: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
.motion-1 {
|
.motion-1 {
|
||||||
motion-path: path(M 100 100 L 300 100 L 200 300 z);
|
offset-path: ray(45deg closest-side);
|
||||||
motion-offset: auto;
|
offset-distance: path(M 100 100 L 300 100 L 200 300 z);
|
||||||
motion-rotation: auto;
|
offset-anchor: auto;
|
||||||
motion: auto;
|
offset-rotate: auto;
|
||||||
|
offset: auto;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
@@ -460,6 +563,15 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
|
.overflow-4::nth-fragment(1) {
|
||||||
|
scrollbar-gutter: stable;
|
||||||
|
continue: force;
|
||||||
|
display: overflow;
|
||||||
|
display: paginate;
|
||||||
|
display: fragments;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
.page {
|
.page {
|
||||||
display: avoid-page;
|
display: avoid-page;
|
||||||
display: page;
|
display: page;
|
||||||
@@ -702,9 +814,10 @@
|
|||||||
line-break: loose;
|
line-break: loose;
|
||||||
overflow-wrap: strict;
|
overflow-wrap: strict;
|
||||||
tab-size: match-parent;
|
tab-size: match-parent;
|
||||||
display: hanging;
|
text-align-all: hanging;
|
||||||
display: each-line;
|
display: each-line;
|
||||||
display: full-width;
|
display: full-width;
|
||||||
|
display: anywhere;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
@@ -863,6 +976,7 @@
|
|||||||
picture,
|
picture,
|
||||||
rb,
|
rb,
|
||||||
rtc,
|
rtc,
|
||||||
|
slot,
|
||||||
template {
|
template {
|
||||||
display: auto;
|
display: auto;
|
||||||
}
|
}
|
||||||
@@ -936,18 +1050,15 @@ tspan,
|
|||||||
unknown,
|
unknown,
|
||||||
use,
|
use,
|
||||||
view {
|
view {
|
||||||
color-interpolation: arcs;
|
color-interpolation: crispEdges;
|
||||||
color-rendering: butt;
|
color-rendering: geometricPrecision;
|
||||||
cx: crispEdges;
|
cx: optimizeQuality;
|
||||||
cy: geometricPrecision;
|
cy: painted;
|
||||||
d: optimizeQuality;
|
d: visiblePainted;
|
||||||
fill-opacity: painted;
|
|
||||||
fill-rule: stroke;
|
|
||||||
fill: viewport;
|
|
||||||
image-rendering: visibleFill;
|
image-rendering: visibleFill;
|
||||||
marker-end: visiblePainted;
|
marker-end: stroke;
|
||||||
marker-mid: visibleStroke;
|
marker-mid: viewport;
|
||||||
marker-start: bounding-box;
|
marker-start: visibleStroke;
|
||||||
pointer-events: context-fill;
|
pointer-events: context-fill;
|
||||||
r: context-stroke;
|
r: context-stroke;
|
||||||
rx: fixed-position;
|
rx: fixed-position;
|
||||||
@@ -957,15 +1068,7 @@ view {
|
|||||||
solid-opacity: non-scaling-size;
|
solid-opacity: non-scaling-size;
|
||||||
stop-color: non-rotation;
|
stop-color: non-rotation;
|
||||||
stop-opacity: child(1);
|
stop-opacity: child(1);
|
||||||
stroke-dasharray: icc-color(foo);
|
text-anchor: icc-color(foo);
|
||||||
stroke-dashoffset: auto;
|
|
||||||
stroke-linecap: auto;
|
|
||||||
stroke-linejoin: auto;
|
|
||||||
stroke-miterlimit: auto;
|
|
||||||
stroke-opacity: auto;
|
|
||||||
stroke-width: auto;
|
|
||||||
stroke: auto;
|
|
||||||
text-anchor: auto;
|
|
||||||
vector-effect: auto;
|
vector-effect: auto;
|
||||||
x: auto;
|
x: auto;
|
||||||
y: auto;
|
y: auto;
|
||||||
|
|||||||
Reference in New Issue
Block a user