(properties)
| 1086 | } |
| 1087 | |
| 1088 | analyzeCSSPropertyCategories(properties) { |
| 1089 | return properties.map(prop => ({ |
| 1090 | property_name: prop, |
| 1091 | category: this.getCSSPropertyCategory(prop), |
| 1092 | sub_category: this.getCSSPropertySubCategory(prop), |
| 1093 | description: this.getPropertyDescription(prop), |
| 1094 | performance_impact: this.getPropertyPerformanceImpact(prop), |
| 1095 | best_practices: JSON.stringify(this.getPropertyBestPractices(prop)), |
| 1096 | common_pitfalls: JSON.stringify(this.getPropertyCommonPitfalls(prop)), |
| 1097 | browser_notes: this.getPropertyBrowserNotes(prop) |
| 1098 | })); |
| 1099 | } |
| 1100 | |
| 1101 | getCSSPropertyCategory(prop) { |
| 1102 | if (prop.match(/margin|padding|width|height|position|top|left|right|bottom|float|clear|display/)) { |
nothing calls this directly
no test coverage detected