MCPcopy
hub / github.com/blueimp/Gallery / elementTests

Function elementTests

js/blueimp-gallery.js:280–301  ·  view source on GitHub ↗

* Tests browser support

()

Source from the content-addressed store, hash-verified

278 * Tests browser support
279 */
280 function elementTests() {
281 var transition = support.transition
282 var prop
283 var translateZ
284 document.body.appendChild(element)
285 if (transition) {
286 prop = transition.name.slice(0, -9) + 'ransform'
287 if (element.style[prop] !== undefined) {
288 element.style[prop] = 'translateZ(0)'
289 translateZ = window
290 .getComputedStyle(element)
291 .getPropertyValue(transition.prefix + 'transform')
292 support.transform = {
293 prefix: transition.prefix,
294 name: prop,
295 translate: true,
296 translateZ: !!translateZ && translateZ !== 'none'
297 }
298 }
299 }
300 document.body.removeChild(element)
301 }
302 if (document.body) {
303 elementTests()
304 } else {

Callers 1

blueimp-gallery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…