(prop)
| 1099 | } |
| 1100 | |
| 1101 | getCSSPropertyCategory(prop) { |
| 1102 | if (prop.match(/margin|padding|width|height|position|top|left|right|bottom|float|clear|display/)) { |
| 1103 | return 'layout'; |
| 1104 | } |
| 1105 | if (prop.match(/color|background|border|box-shadow|opacity|filter/)) { |
| 1106 | return 'visual'; |
| 1107 | } |
| 1108 | if (prop.match(/animation|transition|transform/)) { |
| 1109 | return 'animation'; |
| 1110 | } |
| 1111 | if (prop.match(/font|text|line-height|letter-spacing/)) { |
| 1112 | return 'typography'; |
| 1113 | } |
| 1114 | return 'other'; |
| 1115 | } |
| 1116 | |
| 1117 | getCSSPropertySubCategory(prop) { |
| 1118 | if (prop.includes('flex')) return 'flexbox'; |
no outgoing calls
no test coverage detected