vanillajs-browser-helpers
Version:
Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS in the browser
18 lines (17 loc) • 646 B
TypeScript
import type { CSSStyleKey } from './shared/types';
interface PrefixedPropMatch {
prop: string;
value: string;
prefix: string;
}
export declare function supportsProp(prop: CSSStyleKey, value: string): boolean;
/**
* Detect wether or not the given css property (and/or) value is supported by
* the current browser
*
* @param prop - Property to test
* @param value - Value to test with the property
* @return Returns object if property is supported with prefix, otherwise a boolean is returned
*/
export default function supportsCSS(prop: CSSStyleKey, value: string): PrefixedPropMatch | boolean;
export {};