| 1 | let Declaration = require('../declaration') |
| 2 | |
| 3 | class 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 | |
| 23 | PrintColorAdjust.names = ['print-color-adjust', 'color-adjust'] |
| 24 | |
| 25 | module.exports = PrintColorAdjust |