chrome-shadow-fixer

1.0.1 • Public • Published

chrome-shadow-fixer

This module makes box-shadows printable in Chrome (up to v.38).

Usage

Browser

Add the javascript file /dist/javascript.js:

<script type="text/javascript" src="javascript.js"></script>

and call:

<script>
  window.onload = function() {
    ChromeShadowFixer.fix();
  };
</script>

ES6

Install via npm:

npm i --save chrome-shadow-fixer

Import and use with:

import {fix} from 'chrome-shadow-fixer';
fix();

Options

You can apply the method fix on specific elements by passing them:

const elements = document.getElementsByTagName('*');
fix(elements);

Readme

Keywords

none

Package Sidebar

Install

npm i chrome-shadow-fixer

Weekly Downloads

14

Version

1.0.1

License

ISC

Last publish

Collaborators

  • salomonelli