MCPcopy Index your code
hub / github.com/SortableJS/Sortable / css

Function css

modular/sortable.complete.esm.js:182–199  ·  view source on GitHub ↗
(el, prop, val)

Source from the content-addressed store, hash-verified

180 }
181}
182function css(el, prop, val) {
183 var style = el && el.style;
184 if (style) {
185 if (val === void 0) {
186 if (document.defaultView && document.defaultView.getComputedStyle) {
187 val = document.defaultView.getComputedStyle(el, '');
188 } else if (el.currentStyle) {
189 val = el.currentStyle;
190 }
191 return prop === void 0 ? val : val[prop];
192 } else {
193 if (!(prop in style) && prop.indexOf('webkit') === -1) {
194 prop = '-webkit-' + prop;
195 }
196 style[prop] = val + (typeof val === 'string' ? '' : 'px');
197 }
198 }
199}
200function matrix(el, selfOnly) {
201 var appliedTransforms = '';
202 if (typeof el === 'string') {

Callers 12

matrixFunction · 0.70
getRectFunction · 0.70
lastChildFunction · 0.70
setRectFunction · 0.70
unsetRectFunction · 0.70
AnimationStateManagerFunction · 0.70
_detectDirectionFunction · 0.70
_hideGhostForTargetFunction · 0.70
_unhideGhostForTargetFunction · 0.70
MultiDragPluginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected