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

Method getPropertyCommonPitfalls

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

Source from the content-addressed store, hash-verified

1160 }
1161
1162 getPropertyCommonPitfalls(prop) {
1163 const pitfalls = [];
1164
1165 if (prop.includes('animation')) {
1166 pitfalls.push('过度使用可能导致性能问题');
1167 pitfalls.push('没有提供回退方案');
1168 }
1169 if (prop.includes('flex')) {
1170 pitfalls.push('嵌套使用可能导致性能问题');
1171 pitfalls.push('未考虑浏览器前缀');
1172 }
1173
1174 return pitfalls;
1175 }
1176
1177 getPropertyBrowserNotes(prop) {
1178 const notes = [];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected