MCPcopy
hub / github.com/Modernizr/Modernizr / domToCSS

Function domToCSS

test/browser/integration/prefixedCSS.js:34–38  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

32 }
33
34 function domToCSS(name) {
35 return name.replace(/([A-Z])/g, function(str, m1) {
36 return '-' + m1.toLowerCase();
37 }).replace(/^ms-/, '-ms-');
38 }
39
40 function cssToDOM(name) {
41 return name.replace(/([a-z])-([a-z])/g, function(str, m1, m2) {

Callers 1

testPropFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…