source: node_modules/autoprefixer/lib/hacks/print-color-adjust.js

Last change on this file was 2058e5c, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Working / before login

  • Property mode set to 100644
File size: 506 bytes
Line 
1let Declaration = require('../declaration')
2
3class PrintColorAdjust extends Declaration {
4 /**
5 * Return property name by spec
6 */
7 normalize() {
8 return 'print-color-adjust'
9 }
10
11 /**
12 * Change property name for WebKit-based browsers
13 */
14 prefixed(prop, prefix) {
15 if (prefix === '-moz-') {
16 return 'color-adjust'
17 } else {
18 return prefix + 'print-color-adjust'
19 }
20 }
21}
22
23PrintColorAdjust.names = ['print-color-adjust', 'color-adjust']
24
25module.exports = PrintColorAdjust
Note: See TracBrowser for help on using the repository browser.