.g-svg-autofix-canvas {
  display: inline-block;
  height: auto;
  position: relative;
  user-select: none;
  width: auto;
}

/* canvas controls size of the parent div */
.g-svg-autofix-canvas > canvas {
  display: block;
  height: inherit;
  visibility: hidden;
  width: inherit;
}

/* svg matches size of parent div */
.g-svg-autofix-canvas > svg {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
