docs: function applyZoomResize(layout, zoom) {
          // manually resize pages width/height
          var i, len, pageState, cssRule,
              state = layout.state,
              selector = '.' + layout.config.namespace + ' .' + CSS_CLASS_PAGE_AUTOSCALE,
              stylesheet = layout.config.stylesheet,
              pages = state.pages,
              scale = zoom * layout.config.pageScale,
              percent = 100 / scale;
  
          // apply css transform or zoom to autoscale layer (eg., text, links, user content)
          if (support.csstransform) {
              cssRule = support.csstransform + ':scale(' + scale + ');' +
                  'width:' + percent + '%;' +
                  'height:' + percent + '%;';
          } else if (support.csszoom) {
              cssRule = 'zoom:' + scale;
          } else {
              // should not happen...
              cssRule = '';
          }
  
          // remove the previous style if there is one
          if (state.previousStyleIndex) {
              util.deleteCSSRule(stylesheet, state.previousStyleIndex);
          }
          // create a new rule for the autoscale layer
          state.previousStyleIndex = util.appendCSSRule(stylesheet, selector, cssRule);
  
          // update width/height/padding on all pages
          for (i = 0, len = pages.length; i < len; ++i) {
              pageState = pages[i];
              layout.$pages.eq(i).css({
                  width: pageState.actualWidth * zoom,
                  height: pageState.actualHeight * zoom,
                  paddingTop: pageState.paddingTop * zoom,
                  paddingRight: pageState.paddingRight * zoom,
                  paddingBottom: pageState.paddingBottom * zoom,
                  paddingLeft: pageState.paddingLeft * zoom
              });
          }
      }