chromium/content/test/data/media/picture_in_picture/canvas-in-pip.html

<!DOCTYPE html>
<html>
  <body />

  <script>
    const video = document.createElement('video');

    async function start() {
      const canvas = document.createElement('canvas');
      canvas.getContext('2d').fillRect(0, 0, canvas.width, canvas.height);
      video.srcObject = canvas.captureStream();
      await video.play();
      await video.requestPictureInPicture();
      return true;
    }
  </script>
</html>