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 "\<\(fill\|stroke\)\(-\(break\|color\|image\|origin\|position\|size\|repeat\|opacity\)\)\=\>"
syn match cssFontProp contained "\<stroke-\(align\|dash-\(corner\|justify\)\)\>" syn match cssFontProp contained "\<fill-rule\>"
syn keyword cssFontAttr contained stupid compress dashes gaps 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 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\)\=\>"

View File

@@ -224,15 +224,24 @@
} }
.fill-stroke-3 { .fill-stroke-3 {
fill-break: stupid; fill-rule: butt;
fill-color: compress; fill-break: arcs;
fill-image: dashes; fill-color: stupid;
fill-origin: gaps; fill-image: compress;
fill-position: auto; fill-origin: dashes;
fill-size: auto; fill-position: gaps;
fill-size: bounding-box;
fill-repeat: auto; fill-repeat: auto;
fill: auto;
fill-opacity: auto;
stroke-width: auto;
stroke-align: auto; stroke-align: auto;
stroke-linecap: auto;
stroke-linejoin: auto;
stroke-miterlimit: auto;
stroke-break: auto; stroke-break: auto;
stroke-dasharray: auto;
stroke-dashoffset: auto;
stroke-dash-corner: auto; stroke-dash-corner: auto;
stroke-dash-justify: auto; stroke-dash-justify: auto;
stroke-color: auto; stroke-color: auto;
@@ -241,6 +250,8 @@
stroke-position: auto; stroke-position: auto;
stroke-size: auto; stroke-size: auto;
stroke-repeat: auto; stroke-repeat: auto;
stroke: auto;
stroke-opacity: auto;
} }
.filter-effects-1 { .filter-effects-1 {
@@ -874,18 +885,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;
@@ -895,15 +903,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;

View File

@@ -253,15 +253,24 @@
</style> </style>
<style> <style>
.fill-stroke-3 { .fill-stroke-3 {
fill-break: stupid; fill-rule: butt;
fill-color: compress; fill-break: arcs;
fill-image: dashes; fill-color: stupid;
fill-origin: gaps; fill-image: compress;
fill-position: auto; fill-origin: dashes;
fill-size: auto; fill-position: gaps;
fill-size: bounding-box;
fill-repeat: auto; fill-repeat: auto;
fill: auto;
fill-opacity: auto;
stroke-width: auto;
stroke-align: auto; stroke-align: auto;
stroke-linecap: auto;
stroke-linejoin: auto;
stroke-miterlimit: auto;
stroke-break: auto; stroke-break: auto;
stroke-dasharray: auto;
stroke-dashoffset: auto;
stroke-dash-corner: auto; stroke-dash-corner: auto;
stroke-dash-justify: auto; stroke-dash-justify: auto;
stroke-color: auto; stroke-color: auto;
@@ -270,6 +279,8 @@
stroke-position: auto; stroke-position: auto;
stroke-size: auto; stroke-size: auto;
stroke-repeat: auto; stroke-repeat: auto;
stroke: auto;
stroke-opacity: auto;
} }
</style> </style>
<style> <style>
@@ -957,18 +968,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;
@@ -978,15 +986,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;