Prefer CSS spec

This commit is contained in:
Kyo Nagashima
2017-04-15 11:57:19 +09:00
parent 7bfab47011
commit 708f7afb01
4 changed files with 58 additions and 59 deletions

View File

@@ -1,3 +1,5 @@
syn match cssFontProp contained "\<\(fill\|stroke\)-\(break\|color\|image\|origin\|position\|size\|repeat\)\>"
syn match cssFontProp contained "\<stroke-\(align\|dash-\(corner\|justify\)\)\>"
syn keyword cssFontAttr contained stupid compress dashes gaps
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\>"

View File

@@ -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 match cssFontProp contained "\<color-\(interpolation\|rendering\)\>"
syn match cssFontProp contained "\<fill\(-\(opacity\|rule\)\)\=\>"
syn match cssFontProp contained "\<image-rendering\>"
syn match cssFontProp contained "\<marker-\(end\|mid\|start\)\>"
syn match cssFontProp contained "\<pointer-events\>"
syn match cssFontProp contained "\<shape-rendering\>"
syn match cssFontProp contained "\<solid-\(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 "\<vector-effect\>"
syn keyword cssFontAttr contained arcs butt crispEdges geometricPrecision optimizeQuality painted stroke viewport visibleFill visiblePainted visibleStroke
syn match cssFontAttr contained "\<bounding-box\>"
syn keyword cssFontAttr contained crispEdges geometricPrecision optimizeQuality painted stroke viewport visibleFill visiblePainted visibleStroke
syn match cssFontAttr contained "\<context-\(fill\|stroke\)\>"
syn match cssFontAttr contained "\<fixed-position\>"
syn match cssFontAttr contained "\<miter\(-clip\)\=\>"

View File

@@ -224,15 +224,24 @@
}
.fill-stroke-3 {
fill-break: stupid;
fill-color: compress;
fill-image: dashes;
fill-origin: gaps;
fill-position: auto;
fill-size: auto;
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;
@@ -241,6 +250,8 @@
stroke-position: auto;
stroke-size: auto;
stroke-repeat: auto;
stroke: auto;
stroke-opacity: auto;
}
.filter-effects-1 {
@@ -874,18 +885,15 @@ tspan,
unknown,
use,
view {
color-interpolation: arcs;
color-rendering: butt;
cx: crispEdges;
cy: geometricPrecision;
d: optimizeQuality;
fill-opacity: painted;
fill-rule: stroke;
fill: viewport;
color-interpolation: crispEdges;
color-rendering: geometricPrecision;
cx: optimizeQuality;
cy: painted;
d: visiblePainted;
image-rendering: visibleFill;
marker-end: visiblePainted;
marker-mid: visibleStroke;
marker-start: bounding-box;
marker-end: stroke;
marker-mid: viewport;
marker-start: visibleStroke;
pointer-events: context-fill;
r: context-stroke;
rx: fixed-position;
@@ -895,15 +903,7 @@ view {
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;
text-anchor: icc-color(foo);
vector-effect: auto;
x: auto;
y: auto;

View File

@@ -253,15 +253,24 @@
</style>
<style>
.fill-stroke-3 {
fill-break: stupid;
fill-color: compress;
fill-image: dashes;
fill-origin: gaps;
fill-position: auto;
fill-size: auto;
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;
@@ -270,6 +279,8 @@
stroke-position: auto;
stroke-size: auto;
stroke-repeat: auto;
stroke: auto;
stroke-opacity: auto;
}
</style>
<style>
@@ -957,18 +968,15 @@ tspan,
unknown,
use,
view {
color-interpolation: arcs;
color-rendering: butt;
cx: crispEdges;
cy: geometricPrecision;
d: optimizeQuality;
fill-opacity: painted;
fill-rule: stroke;
fill: viewport;
color-interpolation: crispEdges;
color-rendering: geometricPrecision;
cx: optimizeQuality;
cy: painted;
d: visiblePainted;
image-rendering: visibleFill;
marker-end: visiblePainted;
marker-mid: visibleStroke;
marker-start: bounding-box;
marker-end: stroke;
marker-mid: viewport;
marker-start: visibleStroke;
pointer-events: context-fill;
r: context-stroke;
rx: fixed-position;
@@ -978,15 +986,7 @@ view {
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;
text-anchor: icc-color(foo);
vector-effect: auto;
x: auto;
y: auto;