checkPrefixedProp() — vue Function Reference
Architecture documentation for the checkPrefixedProp() function in style.spec.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD d3ea82d8_2a13_5b59_0b6a_b20a75c3d98e["checkPrefixedProp()"] 19572982_0c9f_798e_440c_d202121c8d99["style.spec.ts"] d3ea82d8_2a13_5b59_0b6a_b20a75c3d98e -->|defined in| 19572982_0c9f_798e_440c_d202121c8d99 style d3ea82d8_2a13_5b59_0b6a_b20a75c3d98e 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