Fix/update list of SVG presentation attributes (#99)

(fixes #94)
This commit is contained in:
Eduard Braun 2016-08-29 03:30:33 +02:00 committed by GitHub
parent 5844076258
commit 0314070363

View file

@ -113,26 +113,59 @@ unwanted_ns = [ NS['SODIPODI'], NS['INKSCAPE'], NS['ADOBE_ILLUSTRATOR'],
NS['ADOBE_IMAGE_REPLACEMENT'], NS['ADOBE_CUSTOM'], NS['ADOBE_IMAGE_REPLACEMENT'], NS['ADOBE_CUSTOM'],
NS['ADOBE_XPATH'], NS['SKETCH'] ] NS['ADOBE_XPATH'], NS['SKETCH'] ]
# A list of all SVG presentation properties
#
# Sources for this list:
# https://www.w3.org/TR/SVG/propidx.html (implemented)
# https://www.w3.org/TR/SVGTiny12/attributeTable.html (implemented)
# https://www.w3.org/TR/SVG2/propidx.html (not yet implemented)
#
svgAttributes = [ svgAttributes = [
# SVG 1.1
'alignment-baseline',
'baseline-shift',
'clip',
'clip-path',
'clip-rule', 'clip-rule',
'color',
'color-interpolation',
'color-interpolation-filters',
'color-profile',
'color-rendering',
'cursor',
'direction',
'display', 'display',
'dominant-baseline',
'enable-background',
'fill', 'fill',
'fill-opacity', 'fill-opacity',
'fill-rule', 'fill-rule',
'filter', 'filter',
'flood-color',
'flood-opacity',
'font',
'font-family', 'font-family',
'font-size', 'font-size',
'font-size-adjust',
'font-stretch', 'font-stretch',
'font-style', 'font-style',
'font-variant', 'font-variant',
'font-weight', 'font-weight',
'line-height', 'glyph-orientation-horizontal',
'glyph-orientation-vertical',
'image-rendering',
'kerning',
'letter-spacing',
'lighting-color',
'marker', 'marker',
'marker-end', 'marker-end',
'marker-mid', 'marker-mid',
'marker-start', 'marker-start',
'mask',
'opacity', 'opacity',
'overflow', 'overflow',
'pointer-events',
'shape-rendering',
'stop-color', 'stop-color',
'stop-opacity', 'stop-opacity',
'stroke', 'stroke',
@ -143,7 +176,24 @@ svgAttributes = [
'stroke-miterlimit', 'stroke-miterlimit',
'stroke-opacity', 'stroke-opacity',
'stroke-width', 'stroke-width',
'visibility' 'text-anchor',
'text-decoration',
'text-rendering',
'unicode-bidi',
'visibility',
'word-spacing',
'writing-mode',
# SVG 1.2 Tiny
'audio-level',
'buffered-rendering',
'display-align',
'line-increment',
'solid-color',
'solid-opacity',
'text-align',
'vector-effect',
'viewport-fill',
'viewport-fill-opacity',
] ]
colors = { colors = {