extensions/amp-story/1.0/amp-story.js
/**
   * Handles resize events and sets CSS variables.
   * @param {!Object} size including new width and height
   * @private
   */
Handles resize events and sets CSS variables.
@param {!Object} size including new width and height
@private
Handles resize events and sets CSS variables . @param { !Object } size including new width and height @private
polyfillDvh_(size) {
    const {height, width} = size;
    if (height === 0 && width === 0) {
      return;
    }
    this.storeService_.dispatch(Action.SET_PAGE_SIZE, {height, width});
    setImportantStyles(this.win.document.documentElement, {
      '--story-dvh': px(height / 100),
    });
  }
polyfillDvh_ ( size ) { const { height , width } = size ; if ( height === 0 && width === 0 ) { return ; } this . storeService_ . dispatch ( Action . SET_PAGE_SIZE , { height , width } ) ; setImportantStyles ( this . win . document . documentElement , { '--story-dvh' : px ( height / 100 ) , } ) ; }
Handles resize events and sets CSS variables.
Handles resize events and sets CSS variables .