Instantly share code, notes, and snippets.

View css-var-polyfill.js
- Option to wait to apply anything until all <link>s are parsed or inject what we have and update as each <link> returns
var cssVarPoly = {
init: function() {
if (window.CSS && window.CSS.supports && window.CSS.supports('(--foo: red)')) {
cssVarPoly.ratifiedVars = {};

Keybase proof

I hereby claim:

  • I am frenkel on github.
  • I am frenkel ( on keybase.
  • I have a public key whose fingerprint is 5EFF 7D9F 0F29 19CB EFE2 95A7 A5FB B5D4 F11B 3231

To claim this, I am signing this object: