dequelabs / axe-core

Accessibility engine for automated Web UI testing
https://www.deque.com/axe/
Mozilla Public License 2.0
5.75k stars 746 forks source link

revert(color-contrast): revert upgrade to colorjs.io v0.5.0 to work with prototype.js #4429

Closed straker closed 2 months ago

straker commented 2 months ago

This puts back the v0.4.3 code in color.js to handle colorjs.io not handling rad and turn values in hsl.

I also decided to use core-js Array.from polyfill rather than our own internal one since I needed to bring it in outside of the polyfill.js file and could then add it as an import and reuse it in both places.

Closes: https://github.com/dequelabs/axe-core/issues/4428