How to use the css-vars-ponyfill.default function in css-vars-ponyfill

To help you get started, we’ve selected a few css-vars-ponyfill examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vmware / clarity / src / clr-core / common / css-vars / css-vars.spec.ts View on Github external
it('calls cssVars() with custom config if given one', () => {
      const customConfig = {
        testsAreGood: true,
      };

      spyOn(cssVars, 'default');
      runCssVarsPolyfill(customConfig);
      expect(cssVars.default).toHaveBeenCalledWith(customConfig);
    });
github vmware / clarity / src / clr-core / common / css-vars / css-vars.spec.ts View on Github external
it('calls cssVars() with default config', () => {
      spyOn(cssVars, 'default');
      runCssVarsPolyfill();
      expect(cssVars.default).toHaveBeenCalledWith(cssVarsDefaultConfig);
    });

css-vars-ponyfill

Client-side support for CSS custom properties (aka "CSS variables") in legacy and modern browsers

MIT
Latest version published 8 months ago

Package Health Score

61 / 100
Full package analysis

Popular css-vars-ponyfill functions