Skip to content

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

Notifications You must be signed in to change notification settings

salomonelli/chrome-shadow-fixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chrome-shadow-fixer

npm version

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published