function isFullScreenSupported(doc) {
  const body = doc.body;
  return !!(
    body['webkitRequestFullscreen'] ||
    (body.requestFullscreen && doc.fullscreenEnabled)
  );
}
@param {Document} doc The root document to check.
@return {boolean} Fullscreen is supported by the current platform.