MCPcopy Create free account
hub / github.com/TruthHun/BookStack / getVendorProp

Function getVendorProp

static/nprogress/nprogress.js:375–388  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

373 }
374
375 function getVendorProp(name) {
376 var style = document.body.style;
377 if (name in style) return name;
378
379 var i = cssPrefixes.length,
380 capName = name.charAt(0).toUpperCase() + name.slice(1),
381 vendorName;
382 while (i--) {
383 vendorName = cssPrefixes[i] + capName;
384 if (vendorName in style) return vendorName;
385 }
386
387 return name;
388 }
389
390 function getStyleProp(name) {
391 name = camelCase(name);

Callers 1

getStylePropFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected