1.0.1 • Published 7 years ago

chrome-shadow-fixer v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

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);
1.0.1

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

1.0.0

7 years ago