MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / getStyles

Function getStyles

docs/_static/jquery-3.6.0.js:6396–6408  ·  view source on GitHub ↗
( elem )

Source from the content-addressed store, hash-verified

6394var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
6395
6396var getStyles = function( elem ) {
6397
6398 // Support: IE <=11 only, Firefox <=30 (#15098, #14150)
6399 // IE throws on elements created in popups
6400 // FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
6401 var view = elem.ownerDocument.defaultView;
6402
6403 if ( !view || !view.opener ) {
6404 view = window;
6405 }
6406
6407 return view.getComputedStyle( elem );
6408 };
6409
6410var swap = function( elem, options, callback ) {
6411 var ret, name,

Callers 3

curCSSFunction · 0.85
getWidthOrHeightFunction · 0.85
jquery-3.6.0.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected