An open API service indexing awesome lists of open source software.

https://github.com/salomonelli/chrome-shadow-fixer

:page_facing_up: makes box-shadows printable in Chrome (up to v.38)
https://github.com/salomonelli/chrome-shadow-fixer

Last synced: 8 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# chrome-shadow-fixer

[![npm version](https://badge.fury.io/js/chrome-shadow-fixer.svg)](https://badge.fury.io/js/chrome-shadow-fixer)

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

## Usage

### Browser

Add the javascript file /dist/javascript.js:

```

```

and call:

```

window.onload = function() {
ChromeShadowFixer.fix();
};

```

### ES6

Install via npm:

```
npm i --save chrome-shadow-fixer
```

Import and use with:

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

## Options

You can apply the method fix on specific elements by passing them:
```javascript
const elements = document.getElementsByTagName('*');
fix(elements);
```