MCPcopy Index your code
hub / github.com/jquery/jquery / isAutoPx

Function isAutoPx

dist-module/jquery.module.js:4118–4125  ·  view source on GitHub ↗
( prop )

Source from the content-addressed store, hash-verified

4116 rautoPx = /^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;
4117
4118function isAutoPx( prop ) {
4119
4120 // The first test is used to ensure that:
4121 // 1. The prop starts with a lowercase letter (as we uppercase it for the second regex).
4122 // 2. The prop is not empty.
4123 return ralphaStart.test( prop ) &&
4124 rautoPx.test( prop[ 0 ].toUpperCase() + prop.slice( 1 ) );
4125}
4126
4127function adjustCSS( elem, prop, valueParts, tween ) {
4128 var adjusted, scale,

Callers 2

adjustCSSFunction · 0.70
jQueryFactoryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected