src/layout.js
/**
 * Asserts that the supplied value is a non-percent CSS Length value.
 * @param {!LengthDef|string|null|undefined} length
 * @return {!LengthDef}
 */
Asserts that the supplied value is a non-percent CSS Length value.
Asserts that the supplied value is a non - percent CSS Length value .
function assertLength(length) {
  user().assert(
      /^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(length),
      'Invalid length value: %s', length);
  return  (length);
}
function assertLength ( length ) { user ( ) . assert ( / ^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$ / . test ( length ) , 'Invalid length value: %s' , length ) ; return ( length ) ; }
Asserts that the supplied value is a non-percent CSS Length value.
Asserts that the supplied value is a non - percent CSS Length value .
/** @type {!LengthDef} */