Requires

Provides

License:
MIT
Authors:
Yaroslaff Fedin
  1. 16
  2. 17
  3. 18
  4. 19
  5. 20
  6. 21
  7. 22
  8. 23
  9. 24
  10. 25
  11. 26
  12. 27
  13. 28
  14. 29
  15. 30
  16. 31
  17. 32
  18. 33
  19. 34
  20. 35
  21. 36
  22. 37
  23. 38
  24. 39
  25. 40
  26. 41
  27. 42
  28. 43
  29. 44
  30. 45
  31. 46
  32. 47
  33. 48
  34. 49
  35. 50
  36. 51
  37. 52
  38. 53
  39. 54
  40. 55
  41. 56
  42. 57
  43. 58
  44. 59
  45. 60
  46. 61
  47. 62
  48. 63
  49. 64
  50. 65
  51. 66
  52. 67
  53. 68
  54. 69
  55. 70
  56. 71
  57. 72
  58. 73
  59. 74
  60. 75
  61. 76
  62. 77
  63. 78
  64. 79
  65. 80
  66. 81
  67. 82
  68. 83
  69. 84
  70. 85
  71. 86
  72. 87
  73. 88
  74. 89
  75. 90
  76. 91
  77. 92
  78. 93
  79. 94
  80. 95
  81. 96
  82. 97
  83. 98
  84. 99
  85. 100
  86. 101
  87. 102
  88. 103
  89. 104
  90. 105
  91. 106
  92. 107
  93. 108
  94. 109
  95. 110
  96. 111
  97. 112
  98. 113
  99. 114
  100. 115
  101. 116
(function() { var SheetParser = (typeof exports == 'undefined') ? window.SheetParser : exports.SheetParser; var CSS = SheetParser.Properties = { background: [[['backgroundColor', 'backgroundImage', 'backgroundRepeat', 'backgroundAttachment', 'backgroundPositionX', 'backgroundPositionY']], 'multiple'], backgroundColor: ['color', 'transparent', 'inherit'], backgroundImage: ['url', 'none', 'inherit'], backgroundRepeat: ['repeat', 'no-repeat', 'repeat-x', 'repeat-y', 'inherit', 'space', 'round'], backgroundAttachment: ['fixed', 'scroll', 'inherit', 'local', 'fixed'], backgroundPosition: [['backgroundPositionX', 'backgroundPositionY']], backgroundPositionX: ['percentage', 'center', 'left', 'right', 'length', 'inherit'], backgroundPositionY: ['percentage', 'center', 'top', 'bottom', 'length', 'inherit'], textShadow: [['textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY', 'textShadowColor'], 'multiple'], textShadowBlur: ['length'], textShadowOffsetX: ['length'], textShadowOffsetY: ['length'], textShadowColor: ['color'], boxShadow: [['boxShadowBlur', 'boxShadowOffsetX', 'boxShadowOffsetY', 'boxShadowColor'], 'multiple'], boxShadowBlur: ['length'], boxShadowOffsetX: ['length'], boxShadowOffsetY: ['length'], boxShadowColor: ['color'], outline: ['outlineWidth', 'outlineStyle', 'outlineColor'], outlineWidth: ['length'], outlineStyle: ['dotted', 'dashed', 'solid', 'double', 'groove', 'reidge', 'inset', 'outset'], outlineColor: ['color'], font: [[ ['fontStyle', 'fontVariant', 'fontWeight'], 'fontSize', ['lineHeight'], 'fontFamily' ]], fontStyle: ['normal', 'italic', 'oblique', 'inherit'], fontVariant: ['normal', 'small-caps', 'inherit'], fontWeight: ['normal', 'number', 'bold', 'inherit'], fontFamily: ['strings', 'inherit'], fontSize: ['length', 'percentage', 'inherit', 'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large', 'smaller', 'larger'], color: ['color'], letterSpacing: ['normal', 'length', 'inherit'], textDecoration: ['none', 'capitalize', 'uppercase', 'lowercase'], textAlign: ['left', 'right', 'center', 'justify'], textIdent: ['length', 'percentage'], lineHeight: ['normal', 'length', 'number', 'percentage'], height: ['length', 'auto'], maxHeight: ['length', 'auto'], minHeight: ['length', 'auto'], width: ['length', 'auto'], maxWidth: ['length', 'auto'], minWidth: ['length', 'auto'], display: ['inline', 'block', 'list-item', 'run-in', 'inline-block', 'table', 'inline-table', 'none', 'table-row-group', 'table-header-group', 'table-footer-group', 'table-row', 'table-column-group', 'table-column', 'table-cell', 'table-caption'], visibility: ['visible', 'hidden'], float: ['none', 'left', 'right'], clear: ['none', 'left', 'right', 'both', 'inherit'], overflow: ['visible', 'hidden', 'scroll', 'auto'], position: ['static', 'relative', 'absolute', 'fixed'], top: ['length', 'auto'], left: ['length', 'auto'], right: ['length', 'auto'], bottom: ['length', 'auto'], zIndex: ['integer'], cursor: ['auto', 'crosshair', 'default', 'hand', 'move', 'e-resize', 'ne-resize', 'nw-resize', 'n-resize', 'se-resize', 'sw-resize', 's-resize', 'w-resize', 'text', 'wait', 'help'], }; var expanded = ['borderWidth', 'borderColor', 'borderStyle', 'padding', 'margin', 'border']; for (var side, sides = ['Top', 'Right', 'Bottom', 'Left'], i = 0; side = sides[i++];) { CSS['border' + side] = [['border' + side + 'Width', 'border' + side + 'Style', 'border' + side + 'Color']]; CSS['border' + side + 'Width'] = ['length', 'thin', 'thick', 'medium']; CSS['border' + side + 'Style'] = ['none', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset', 'inherit', 'none']; CSS['border' + side + 'Color'] = ['color']; CSS['margin' + side] = ['length', 'percentage', 'auto']; CSS['padding' + side] = ['length', 'percentage', 'auto']; for (var j = 0, prop; prop = expanded[j++];) { if (!CSS[prop]) CSS[prop] = [[]]; CSS[prop][0].push(prop.replace(/^([a-z]*)/, '$1' + side)); if (i == 4) CSS[prop].push('collection') } if (i % 2 == 0) for (var j = 1, adj; adj = sides[j+=2];) CSS['borderRadius' + side + adj] = ['length', 'none']; }; var Styles = SheetParser.Styles = {} for (var property in CSS) Styles[property] = SheetParser.Property.compile(CSS[property], Styles); })();