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)
- Host: GitHub
- URL: https://github.com/salomonelli/chrome-shadow-fixer
- Owner: salomonelli
- Created: 2017-05-20T13:03:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-03T10:18:06.000Z (over 8 years ago)
- Last Synced: 2024-11-06T10:02:14.917Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 367 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chrome-shadow-fixer
[](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);
```