Clone this repo:
  1. 568876b Test OffscreenCanvas's transferToImageBitmap function for both webgl and webgl2 (#2374) by xlai · 3 hours ago master
  2. d677947 Fetch WebGL 2.0 context by default in object-deletion-behaviour-2 test. (#2381) by Ken Russell · 2 days ago
  3. 955057a Security tests for OffscreenCanvas texImage functions (#2376) by xlai · 3 days ago
  4. 40d75ac Revert "Fix #2274: Add GL_RGB10_A2 to texImageSource variants of tex(Sub)Image* (#2375)" (#2380) by Ken Russell · 3 days ago
  5. 34ceda7 Fix #2274: Add GL_RGB10_A2 to texImageSource variants of tex(Sub)Image* (#2375) by Aleksandar Stojiljkovic · 3 days ago

The Official Khronos WebGL Repository

This is the official home of the Khronos WebGL repository for the WebGL specifications and the WebGL conformance test suite.

Before adding a new test or editing an existing test please read these guidelines.

You can find live versions of the specifications at

The newest work in progress WebGL conformance test suite for the next version of the spec can be accessed at.

Official live versions of the conformance test suite can be found at

The WebGL Wiki can be found here

Cloning this repository

When cloning this repository please pass the --recursive flag to git:

git clone --recursive [URL]

This will properly install the WebGLDeveloperTools repository as a git submodule under sdk/devtools/.

The last edited date in several specifications is automatically updated via a smudge filter. To benefit from this you must issue the following commands in the root of your clone.

On Unix (Linux, Mac OS X, etc.) platforms and Windows using Git for Windows' Git Bash or Cygwin's bash terminal:

rm specs/latest/*/index.html
git checkout !$

On Windows with the Command Prompt (requires git.exe in a directory on your %PATH%):

del specs/latest/1.0/index.html specs/latest/2.0/index.html 
git checkout specs/latest/1.0/index.html specs/latest/2.0/index.html 

The first command adds an [include] of the repo's .gitconfig to the local git config file.git/config in your clone of the repo. .gitconfig contains the config of the “dater” filter. The remaining commands force a new checkout of the index.html files to smudge them with the date. These two are unnecessary if you plan to edit these files. All are unecessary if you do not care about having the dates shown.