chromium/fuchsia_web/runners/cast/testdata/webgl_presence.html

<script>
  var canvas = document.createElement("canvas");
  var gl = canvas.getContext("webgl");
  document.title = gl ? "present" : "absent";
</script>