UNPKG

autoprefixer

Version:

Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website

26 lines (21 loc) 506 B
let Declaration = require('../declaration') class PrintColorAdjust extends Declaration { /** * Return property name by spec */ normalize() { return 'print-color-adjust' } /** * Change property name for WebKit-based browsers */ prefixed(prop, prefix) { if (prefix === '-moz-') { return 'color-adjust' } else { return prefix + 'print-color-adjust' } } } PrintColorAdjust.names = ['print-color-adjust', 'color-adjust'] module.exports = PrintColorAdjust