Skip to content

Commit 59bbfc5

Browse files
committed
Add all SVG properties
1 parent e365a61 commit 59bbfc5

File tree

2 files changed

+389
-7
lines changed

2 files changed

+389
-7
lines changed

src/css/Properties.js

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var Properties = {
99
"-webkit-align-content" : "flex-start | flex-end | center | space-between | space-around | stretch",
1010
"-webkit-align-self" : "auto | flex-start | flex-end | center | baseline | stretch",
1111
"alignment-adjust" : "auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | <percentage> | <length>",
12-
"alignment-baseline" : "baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",
12+
"alignment-baseline" : "auto | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical | inherit",
1313
"animation" : 1,
1414
"animation-delay" : { multi: "<time>", comma: true },
1515
"animation-direction" : { multi: "normal | alternate", comma: true },
@@ -93,7 +93,7 @@ var Properties = {
9393
"background-position" : { multi: "<bg-position>", comma: true },
9494
"background-repeat" : { multi: "<repeat-style>" },
9595
"background-size" : { multi: "<bg-size>", comma: true },
96-
"baseline-shift" : "baseline | sub | super | <percentage> | <length>",
96+
"baseline-shift" : "baseline | sub | super | <percentage> | <length> | inherit",
9797
"behavior" : 1,
9898
"binding" : 1,
9999
"bleed" : "<length>",
@@ -245,8 +245,13 @@ var Properties = {
245245
"caption-side" : "top | bottom | inherit",
246246
"clear" : "none | right | left | both | inherit",
247247
"clip" : 1,
248+
"clip-path" : 1,
249+
"clip-rule" : "nonzero | evenodd | inherit",
248250
"color" : "<color> | inherit",
251+
"color-interpolation" : "auto | sRGB | linearRGB | inherit",
252+
"color-interpolation-filters" : "auto | sRGB | linearRGB | inherit",
249253
"color-profile" : 1,
254+
"color-rendering" : "auto | optimizeSpeed | optimizeQuality | inherit",
250255
"column-count" : "<integer> | auto", //http://www.w3.org/TR/css3-multicol/
251256
"column-fill" : "auto | balance",
252257
"column-gap" : "<length> | normal",
@@ -269,7 +274,7 @@ var Properties = {
269274
//D
270275
"direction" : "ltr | rtl | inherit",
271276
"display" : "inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | grid | inline-grid | none | inherit | -moz-box | -moz-inline-block | -moz-inline-box | -moz-inline-grid | -moz-inline-stack | -moz-inline-table | -moz-grid | -moz-grid-group | -moz-grid-line | -moz-groupbox | -moz-deck | -moz-popup | -moz-stack | -moz-marker | -webkit-box | -webkit-inline-box | -ms-flexbox | -ms-inline-flexbox | flex | -webkit-flex | inline-flex | -webkit-inline-flex",
272-
"dominant-baseline" : 1,
277+
"dominant-baseline" : "auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge | inherit",
273278
"drop-initial-after-adjust" : "central | middle | after-edge | text-after-edge | ideographic | alphabetic | mathematical | <percentage> | <length>",
274279
"drop-initial-after-align" : "baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",
275280
"drop-initial-before-adjust" : "before-edge | text-before-edge | central | middle | hanging | mathematical | <percentage> | <length>",
@@ -280,8 +285,12 @@ var Properties = {
280285
//E
281286
"elevation" : "<angle> | below | level | above | higher | lower | inherit",
282287
"empty-cells" : "show | hide | inherit",
288+
"enable-background" : 1,
283289

284290
//F
291+
"fill" : 1,
292+
"fill-opacity" : "<number> | inherit",
293+
"fill-rule" : "nonzero | evenodd | inherit",
285294
"filter" : 1,
286295
"fit" : "fill | hidden | meet | slice",
287296
"fit-position" : 1,
@@ -307,6 +316,8 @@ var Properties = {
307316
"-ms-flex-wrap" : "nowrap | wrap | wrap-reverse",
308317
"float" : "left | right | none | inherit",
309318
"float-offset" : 1,
319+
"flood-color" : 1,
320+
"flood-opacity" : "<number> | inherit",
310321
"font" : 1,
311322
"font-family" : 1,
312323
"font-size" : "<absolute-size> | <relative-size> | <length> | <percentage> | inherit",
@@ -317,6 +328,8 @@ var Properties = {
317328
"font-weight" : "normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit",
318329

319330
//G
331+
"glyph-orientation-horizontal" : "<angle> | inherit",
332+
"glyph-orientation-vertical" : "auto | <angle> | inherit",
320333
"grid-cell-stacking" : "columns | rows | layer",
321334
"grid-column" : 1,
322335
"grid-columns" : 1,
@@ -344,17 +357,21 @@ var Properties = {
344357
//I
345358
"icon" : 1,
346359
"image-orientation" : "angle | auto",
347-
"image-rendering" : 1,
360+
"image-rendering" : "auto | optimizeSpeed | optimizeQuality | inherit",
348361
"image-resolution" : 1,
349362
"inline-box-align" : "initial | last | <integer>",
350363

351364
//J
352365
"justify-content" : "flex-start | flex-end | center | space-between | space-around",
353366
"-webkit-justify-content" : "flex-start | flex-end | center | space-between | space-around",
354367

368+
//K
369+
"kerning" : "auto | <length> | inherit",
370+
355371
//L
356372
"left" : "<margin-width> | inherit",
357373
"letter-spacing" : "<length> | normal | inherit",
374+
"lighting-color" : 1,
358375
"line-height" : "<number> | <length> | <percentage> | normal | inherit",
359376
"line-break" : "auto | loose | normal | strict",
360377
"line-stacking" : 1,
@@ -375,11 +392,16 @@ var Properties = {
375392
"mark" : 1,
376393
"mark-after" : 1,
377394
"mark-before" : 1,
395+
"marker" : 1,
396+
"marker-end" : 1,
397+
"marker-mid" : 1,
398+
"marker-start" : 1,
378399
"marks" : 1,
379400
"marquee-direction" : 1,
380401
"marquee-play-count" : 1,
381402
"marquee-speed" : 1,
382403
"marquee-style" : 1,
404+
"mask" : 1,
383405
"max-height" : "<length> | <percentage> | <content-sizing> | none | inherit",
384406
"max-width" : "<length> | <percentage> | <content-sizing> | none | inherit",
385407
"min-height" : "<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats | inherit",
@@ -453,16 +475,28 @@ var Properties = {
453475
"ruby-span" : 1,
454476

455477
//S
478+
"shape-rendering" : "auto | optimizeSpeed | crispEdges | geometricPrecision | inherit",
456479
"size" : 1,
457480
"speak" : "normal | none | spell-out | inherit",
458481
"speak-header" : "once | always | inherit",
459482
"speak-numeral" : "digits | continuous | inherit",
460483
"speak-punctuation" : "code | none | inherit",
461484
"speech-rate" : 1,
462485
"src" : 1,
486+
"stop-color" : 1,
487+
"stop-opacity" : "<number> | inherit",
463488
"stress" : 1,
464489
"string-set" : 1,
465-
490+
"stroke" : 1,
491+
"stroke-dasharray" : 1,
492+
"stroke-dashoffset" : "<percentage> | <length> | inherit",
493+
"stroke-linecap" : "butt | round | square | inherit",
494+
"stroke-linejoin" : "miter | round | bevel | inherit",
495+
"stroke-miterlimit" : "<number> | inherit",
496+
"stroke-opacity" : "<number> | inherit",
497+
"stroke-width" : "<percentage> | <length> | inherit",
498+
499+
//T
466500
"table-layout" : "auto | fixed | inherit",
467501
"tab-size" : "<integer> | <length>",
468502
"target" : 1,
@@ -471,6 +505,7 @@ var Properties = {
471505
"target-position" : 1,
472506
"text-align" : "left | right | center | justify | inherit" ,
473507
"text-align-last" : 1,
508+
"text-anchor" : "start | middle | end | inherit",
474509
"text-decoration" : 1,
475510
"text-emphasis" : 1,
476511
"text-height" : 1,

0 commit comments

Comments
 (0)