MCPcopy Create free account
hub / github.com/Inviz/lsd / toCSSSelector

Function toCSSSelector

Source/Sheet.js:99–111  ·  view source on GitHub ↗
(selectors)

Source from the content-addressed store, hash-verified

97 rules: {}
98 };
99 var toCSSSelector = function(selectors) {
100 return selectors.map(function(parsed){
101 var classes = ['', 'art'];
102 if (parsed.tag) classes.push(parsed.tag);
103 if (parsed.id) classes.push('id-' + parsed.id);
104 if (parsed.pseudos) {
105 parsed.pseudos.each(function(pseudo) {
106 classes.push(pseudo.key);
107 });
108 };
109 return classes.join('.')
110 }).join(' ');
111 }
112
113 ART.Styles.Except = new FastArray('backgroundColor', 'width', 'height', 'minWidth', 'minHeight', 'maxWidth', 'maxHeight');
114

Callers 1

Sheet.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected