0.5.0
Minor Changes
-
9e46c51
#380 Thanks @eps1lon! - BREAKING CHANGEIgnore
::before
and::after
by default.This was necessary to prevent excessive warnings in
jsdom@^16.4.0
.
If you use this package in a browser that supports the second argument ofwindow.getComputedStyle
you can set thecomputedStyleSupportsPseudoElements
option to true:computeAccessibleName(element, { computedStyleSupportsPseudoElements: true }); computeAccessibleDescription(element, { computedStyleSupportsPseudoElements: true });
If you pass a custom implementation of
getComputedStyle
then this option defaults totrue
.
The following two calls are equivalent:computeAccessibleName(element, { computedStyleSupportsPseudoElements: true }); computeAccessibleName(element, { getComputedStyle: (element, pseudoElement) => { // custom implementation } });