import type { Prefixer } from './types' ; import { prefixProperty , prefixValue } from 'tiny-css-prefixer' ; export const autoprefix = ( property , value ) : string => { const declaration = `${ property }:${ prefixValue ( property , value ) }` ; let cssText = declaration ; const flag = prefixProperty ( property ) ; if ( flag & 0b001 ) cssText += `;-ms-${ declaration }` ; if ( flag & 0b010 ) cssText += `;-moz-${ declaration }` ; if ( flag & 0b100 ) cssText += `;-webkit-${ declaration }` ; return cssText ; } ; export const noprefix = ( property , value ) : string => `${ property }:${ value }` ;