MCPcopy Create free account
hub / github.com/totaljs/framework / compile_autovendor

Function compile_autovendor

internal.js:833–845  ·  view source on GitHub ↗
(css)

Source from the content-addressed store, hash-verified

831// *********************************************************************************
832
833function compile_autovendor(css) {
834 var avp = '/*auto*/';
835 var isAuto = css.substring(0, 100).indexOf(avp) !== -1;
836 if (isAuto)
837 css = autoprefixer(css.replace(avp, ''));
838 return css.replace(REG_CSS_0, ' ').replace(REG_CSS_1, '').replace(REG_CSS_2, '{').replace(REG_CSS_3, '}').replace(REG_CSS_4, ':').replace(REG_CSS_5, ';').replace(REG_CSS_6, function(search, index, text) {
839 for (var i = index; i > 0; i--) {
840 if ((text[i] === '\'' || text[i] === '"') && (text[i - 1] === ':'))
841 return search;
842 }
843 return ',';
844 }).replace(REG_CSS_7, '}').replace(REG_CSS_8, '{').replace(REG_CSS_9, '}').replace(REG_CSS_12, cssmarginpadding).replace(REG_CSS_13, csscolors).trim();
845}
846
847function csscolors(text) {
848 return text.substring(0, 4);

Callers 1

internal.jsFile · 0.85

Calls 1

autoprefixerFunction · 0.85

Tested by

no test coverage detected