mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-07 03:04:26 +08:00
Add svg2.vim
With inline SVG, some SVG elements and attributes appear in CSS. So I need to support it. SVG attributes that can be used in CSS are defined in [presentational attributes][1]. All SVG elements can appear. [1]: http://www.w3.org/TR/SVG2/styling.html#PresentationAttributes
This commit is contained in:
103
test/test.css
103
test/test.css
@@ -760,3 +760,106 @@ rtc,
|
||||
template {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.svg2,
|
||||
animate,
|
||||
animateMotion,
|
||||
animateTransform,
|
||||
circle,
|
||||
clipPath,
|
||||
cursor,
|
||||
defs,
|
||||
desc,
|
||||
discard,
|
||||
ellipse,
|
||||
feBlend,
|
||||
feColorMatrix,
|
||||
feComponentTransfer,
|
||||
feComposite,
|
||||
feConvolveMatrix,
|
||||
feDiffuseLighting,
|
||||
feDisplacementMap,
|
||||
feDistantLight,
|
||||
feDropShadow,
|
||||
feFlood,
|
||||
feFuncA,
|
||||
feFuncB,
|
||||
feFuncG,
|
||||
feFuncR,
|
||||
feGaussianBlur,
|
||||
feImage,
|
||||
feMerge,
|
||||
feMergeNode,
|
||||
feMorphology,
|
||||
feOffset,
|
||||
fePointLight,
|
||||
feSpecularLighting,
|
||||
feSpotLight,
|
||||
feTile,
|
||||
feTurbulence,
|
||||
filter,
|
||||
foreignObject,
|
||||
g,
|
||||
hatch,
|
||||
hatchpath,
|
||||
image,
|
||||
line,
|
||||
linearGradient,
|
||||
marker,
|
||||
mesh,
|
||||
meshgradient,
|
||||
meshpatch,
|
||||
meshrow,
|
||||
metadata,
|
||||
mpath,
|
||||
path,
|
||||
pattern,
|
||||
polygon,
|
||||
polyline,
|
||||
radialGradient,
|
||||
rect,
|
||||
set,
|
||||
solidcolor,
|
||||
stop,
|
||||
switch,
|
||||
symbol,
|
||||
text,
|
||||
textPath,
|
||||
tspan,
|
||||
unknown,
|
||||
use,
|
||||
view {
|
||||
color-interpolation: arcs;
|
||||
color-rendering: butt;
|
||||
cx: crispEdges;
|
||||
cy: geometricPrecision;
|
||||
d: optimizeQuality;
|
||||
fill-opacity: painted;
|
||||
fill-rule: stroke;
|
||||
fill: viewport;
|
||||
image-rendering: visibleFill;
|
||||
marker-end: visiblePainted;
|
||||
marker-mid: visibleStroke;
|
||||
marker-start: bounding-box;
|
||||
pointer-events: context-fill;
|
||||
r: context-stroke;
|
||||
rx: fixed-position;
|
||||
ry: miter;
|
||||
shape-rendering: miter-clip;
|
||||
solid-color: non-scaling-stroke;
|
||||
solid-opacity: non-scaling-size;
|
||||
stop-color: non-rotation;
|
||||
stop-opacity: child(1);
|
||||
stroke-dasharray: 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;
|
||||
x: auto;
|
||||
y: auto;
|
||||
}
|
||||
|
||||
104
test/test.html
104
test/test.html
@@ -836,6 +836,110 @@ rtc,
|
||||
template {
|
||||
display: auto;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.svg2,
|
||||
animate,
|
||||
animateMotion,
|
||||
animateTransform,
|
||||
circle,
|
||||
clipPath,
|
||||
cursor,
|
||||
defs,
|
||||
desc,
|
||||
discard,
|
||||
ellipse,
|
||||
feBlend,
|
||||
feColorMatrix,
|
||||
feComponentTransfer,
|
||||
feComposite,
|
||||
feConvolveMatrix,
|
||||
feDiffuseLighting,
|
||||
feDisplacementMap,
|
||||
feDistantLight,
|
||||
feDropShadow,
|
||||
feFlood,
|
||||
feFuncA,
|
||||
feFuncB,
|
||||
feFuncG,
|
||||
feFuncR,
|
||||
feGaussianBlur,
|
||||
feImage,
|
||||
feMerge,
|
||||
feMergeNode,
|
||||
feMorphology,
|
||||
feOffset,
|
||||
fePointLight,
|
||||
feSpecularLighting,
|
||||
feSpotLight,
|
||||
feTile,
|
||||
feTurbulence,
|
||||
filter,
|
||||
foreignObject,
|
||||
g,
|
||||
hatch,
|
||||
hatchpath,
|
||||
image,
|
||||
line,
|
||||
linearGradient,
|
||||
marker,
|
||||
mesh,
|
||||
meshgradient,
|
||||
meshpatch,
|
||||
meshrow,
|
||||
metadata,
|
||||
mpath,
|
||||
path,
|
||||
pattern,
|
||||
polygon,
|
||||
polyline,
|
||||
radialGradient,
|
||||
rect,
|
||||
set,
|
||||
solidcolor,
|
||||
stop,
|
||||
switch,
|
||||
symbol,
|
||||
text,
|
||||
textPath,
|
||||
tspan,
|
||||
unknown,
|
||||
use,
|
||||
view {
|
||||
color-interpolation: arcs;
|
||||
color-rendering: butt;
|
||||
cx: crispEdges;
|
||||
cy: geometricPrecision;
|
||||
d: optimizeQuality;
|
||||
fill-opacity: painted;
|
||||
fill-rule: stroke;
|
||||
fill: viewport;
|
||||
image-rendering: visibleFill;
|
||||
marker-end: visiblePainted;
|
||||
marker-mid: visibleStroke;
|
||||
marker-start: bounding-box;
|
||||
pointer-events: context-fill;
|
||||
r: context-stroke;
|
||||
rx: fixed-position;
|
||||
ry: miter;
|
||||
shape-rendering: miter-clip;
|
||||
solid-color: non-scaling-stroke;
|
||||
solid-opacity: non-scaling-size;
|
||||
stop-color: non-rotation;
|
||||
stop-opacity: child(1);
|
||||
stroke-dasharray: 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;
|
||||
x: auto;
|
||||
y: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user