shorthandData.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. 'use strict';
  2. /** @type {Record<string, string[]>} */
  3. module.exports = {
  4. margin: ['margin-top', 'margin-bottom', 'margin-left', 'margin-right'],
  5. padding: ['padding-top', 'padding-bottom', 'padding-left', 'padding-right'],
  6. background: [
  7. 'background-image',
  8. 'background-size',
  9. 'background-position',
  10. 'background-repeat',
  11. 'background-origin',
  12. 'background-clip',
  13. 'background-attachment',
  14. 'background-color',
  15. ],
  16. font: [
  17. 'font-style',
  18. 'font-variant',
  19. 'font-weight',
  20. 'font-stretch',
  21. 'font-size',
  22. 'font-family',
  23. 'line-height',
  24. ],
  25. border: [
  26. 'border-top-width',
  27. 'border-bottom-width',
  28. 'border-left-width',
  29. 'border-right-width',
  30. 'border-top-style',
  31. 'border-bottom-style',
  32. 'border-left-style',
  33. 'border-right-style',
  34. 'border-top-color',
  35. 'border-bottom-color',
  36. 'border-left-color',
  37. 'border-right-color',
  38. ],
  39. 'border-top': ['border-top-width', 'border-top-style', 'border-top-color'],
  40. 'border-bottom': ['border-bottom-width', 'border-bottom-style', 'border-bottom-color'],
  41. 'border-left': ['border-left-width', 'border-left-style', 'border-left-color'],
  42. 'border-right': ['border-right-width', 'border-right-style', 'border-right-color'],
  43. 'border-width': [
  44. 'border-top-width',
  45. 'border-bottom-width',
  46. 'border-left-width',
  47. 'border-right-width',
  48. ],
  49. 'border-style': [
  50. 'border-top-style',
  51. 'border-bottom-style',
  52. 'border-left-style',
  53. 'border-right-style',
  54. ],
  55. 'border-color': [
  56. 'border-top-color',
  57. 'border-bottom-color',
  58. 'border-left-color',
  59. 'border-right-color',
  60. ],
  61. 'list-style': ['list-style-type', 'list-style-position', 'list-style-image'],
  62. 'border-radius': [
  63. 'border-top-right-radius',
  64. 'border-top-left-radius',
  65. 'border-bottom-right-radius',
  66. 'border-bottom-left-radius',
  67. ],
  68. transition: [
  69. 'transition-delay',
  70. 'transition-duration',
  71. 'transition-property',
  72. 'transition-timing-function',
  73. ],
  74. animation: [
  75. 'animation-name',
  76. 'animation-duration',
  77. 'animation-timing-function',
  78. 'animation-delay',
  79. 'animation-iteration-count',
  80. 'animation-direction',
  81. 'animation-fill-mode',
  82. 'animation-play-state',
  83. ],
  84. 'border-block-end': [
  85. 'border-block-end-width',
  86. 'border-block-end-style',
  87. 'border-block-end-color',
  88. ],
  89. 'border-block-start': [
  90. 'border-block-start-width',
  91. 'border-block-start-style',
  92. 'border-block-start-color',
  93. ],
  94. 'border-image': [
  95. 'border-image-source',
  96. 'border-image-slice',
  97. 'border-image-width',
  98. 'border-image-outset',
  99. 'border-image-repeat',
  100. ],
  101. 'border-inline-end': [
  102. 'border-inline-end-width',
  103. 'border-inline-end-style',
  104. 'border-inline-end-color',
  105. ],
  106. 'border-inline-start': [
  107. 'border-inline-start-width',
  108. 'border-inline-start-style',
  109. 'border-inline-start-color',
  110. ],
  111. 'column-rule': ['column-rule-width', 'column-rule-style', 'column-rule-color'],
  112. columns: ['column-width', 'column-count'],
  113. flex: ['flex-grow', 'flex-shrink', 'flex-basis'],
  114. 'flex-flow': ['flex-direction', 'flex-wrap'],
  115. grid: [
  116. 'grid-template-rows',
  117. 'grid-template-columns',
  118. 'grid-template-areas',
  119. 'grid-auto-rows',
  120. 'grid-auto-columns',
  121. 'grid-auto-flow',
  122. 'grid-column-gap',
  123. 'grid-row-gap',
  124. ],
  125. 'grid-area': ['grid-row-start', 'grid-column-start', 'grid-row-end', 'grid-column-end'],
  126. 'grid-column': ['grid-column-start', 'grid-column-end'],
  127. 'grid-gap': ['grid-row-gap', 'grid-column-gap'],
  128. 'grid-row': ['grid-row-start', 'grid-row-end'],
  129. 'grid-template': ['grid-template-columns', 'grid-template-rows', 'grid-template-areas'],
  130. outline: ['outline-color', 'outline-style', 'outline-width'],
  131. 'text-decoration': ['text-decoration-color', 'text-decoration-style', 'text-decoration-line'],
  132. 'text-emphasis': ['text-emphasis-style', 'text-emphasis-color'],
  133. mask: [
  134. 'mask-image',
  135. 'mask-mode',
  136. 'mask-position',
  137. 'mask-size',
  138. 'mask-repeat',
  139. 'mask-origin',
  140. 'mask-clip',
  141. 'mask-composite',
  142. ],
  143. };