You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
619 B
18 lines
619 B
5 years ago
|
/**
|
||
|
* implements https://w3c.github.io/accname/
|
||
|
*/
|
||
|
/**
|
||
|
* interface for an options-bag where `window.getComputedStyle` can be mocked
|
||
|
*/
|
||
|
interface GetComputedStyleOptions {
|
||
|
getComputedStyle?: typeof window.getComputedStyle;
|
||
|
}
|
||
|
/**
|
||
|
* implements https://w3c.github.io/accname/#mapping_additional_nd_te
|
||
|
* @param root
|
||
|
* @param [options]
|
||
|
* @parma [options.getComputedStyle] - mock window.getComputedStyle. Needs `content`, `display` and `visibility`
|
||
|
*/
|
||
|
export declare function computeAccessibleName(root: Element, options?: GetComputedStyleOptions): string;
|
||
|
export {};
|
||
|
//# sourceMappingURL=accessible-name.d.ts.map
|