docs: function getContentDimensions(instance) {
      const contentElement = instance._root.firstElementChild
      if (!contentElement) {
        return {
          width: 0,
          height: 0,
        }
      }
  
      let width
      let height
      if (window.devicePixelRatio > 1) {
        // This is much less performant, so we use in only on HiDPi displays
        const bounds = contentElement.getBoundingClientRect()
        width = bounds.width
        height = bounds.height
      } else {
        width = contentElement.scrollWidth
        height = contentElement.scrollHeight
      }
  
      return {
        width,
        height,
      }
    }