MCPcopy Create free account
hub / github.com/chokcoco/iCSS / getCSSPropertyCategory

Method getCSSPropertyCategory

MCP/scripts/fetch-issues.js:1101–1115  ·  view source on GitHub ↗
(prop)

Source from the content-addressed store, hash-verified

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';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected