checkPrefixedProp() — vue Function Reference
Architecture documentation for the checkPrefixedProp() function in style.spec.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 8b54f4f2_e3b4_b028_7a65_e50fd25b3285["checkPrefixedProp()"] e4fbec66_7f2c_f6a4_7903_e067c8cde67b["style.spec.ts"] 8b54f4f2_e3b4_b028_7a65_e50fd25b3285 -->|defined in| e4fbec66_7f2c_f6a4_7903_e067c8cde67b style 8b54f4f2_e3b4_b028_7a65_e50fd25b3285 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
test/unit/features/directives/style.spec.ts lines 3–16
function checkPrefixedProp(prop) {
const el = document.createElement('div')
const upper = prop.charAt(0).toUpperCase() + prop.slice(1)
if (!(prop in el.style)) {
const prefixes = ['Webkit', 'Moz', 'ms']
let i = prefixes.length
while (i--) {
if (prefixes[i] + upper in el.style) {
prop = prefixes[i] + upper
}
}
}
return prop
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does checkPrefixedProp() do?
checkPrefixedProp() is a function in the vue codebase, defined in test/unit/features/directives/style.spec.ts.
Where is checkPrefixedProp() defined?
checkPrefixedProp() is defined in test/unit/features/directives/style.spec.ts at line 3.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free