axe-core 4.11.0-canary.013461c → 4.11.0-canary.316967d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/axe.js +10 -7
- package/axe.min.js +2 -2
- package/package.json +1 -1
- package/sri-history.json +3 -3
package/axe.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! axe v4.11.0-canary.
|
|
1
|
+
/*! axe v4.11.0-canary.316967d
|
|
2
2
|
* Copyright (c) 2015 - 2025 Deque Systems, Inc.
|
|
3
3
|
*
|
|
4
4
|
* Your use of this Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}, _typeof(o);
|
|
23
23
|
}
|
|
24
24
|
var axe = axe || {};
|
|
25
|
-
axe.version = '4.11.0-canary.
|
|
25
|
+
axe.version = '4.11.0-canary.316967d';
|
|
26
26
|
if (typeof define === 'function' && define.amd) {
|
|
27
27
|
define('axe-core', [], function() {
|
|
28
28
|
return axe;
|
|
@@ -16403,7 +16403,10 @@
|
|
|
16403
16403
|
prototypeArrayFrom = Array.from;
|
|
16404
16404
|
Array.from = import_from2['default'];
|
|
16405
16405
|
}
|
|
16406
|
-
var _color2 = new _Color(colorString).
|
|
16406
|
+
var _color2 = new _Color(colorString).toGamut({
|
|
16407
|
+
space: 'srgb',
|
|
16408
|
+
method: 'clip'
|
|
16409
|
+
}).to('srgb');
|
|
16407
16410
|
if (prototypeArrayFrom) {
|
|
16408
16411
|
Array.from = prototypeArrayFrom;
|
|
16409
16412
|
prototypeArrayFrom = null;
|
|
@@ -16439,9 +16442,9 @@
|
|
|
16439
16442
|
key: 'getRelativeLuminance',
|
|
16440
16443
|
value: function getRelativeLuminance() {
|
|
16441
16444
|
var rSRGB = this.r, gSRGB = this.g, bSRGB = this.b;
|
|
16442
|
-
var r = rSRGB <= .
|
|
16443
|
-
var g2 = gSRGB <= .
|
|
16444
|
-
var b2 = bSRGB <= .
|
|
16445
|
+
var r = rSRGB <= .04045 ? rSRGB / 12.92 : Math.pow((rSRGB + .055) / 1.055, 2.4);
|
|
16446
|
+
var g2 = gSRGB <= .04045 ? gSRGB / 12.92 : Math.pow((gSRGB + .055) / 1.055, 2.4);
|
|
16447
|
+
var b2 = bSRGB <= .04045 ? bSRGB / 12.92 : Math.pow((bSRGB + .055) / 1.055, 2.4);
|
|
16445
16448
|
return .2126 * r + .7152 * g2 + .0722 * b2;
|
|
16446
16449
|
}
|
|
16447
16450
|
}, {
|
|
@@ -20052,7 +20055,7 @@
|
|
|
20052
20055
|
return selectAllRecursive(selectorArr, doc);
|
|
20053
20056
|
}
|
|
20054
20057
|
function selectAllRecursive(_ref78, doc) {
|
|
20055
|
-
var _ref79 = _toArray(_ref78), selectorStr = _ref79[0], restSelector = _ref79.slice(1);
|
|
20058
|
+
var _ref79 = _toArray(_ref78), selectorStr = _ref79[0], restSelector = _arrayLikeToArray(_ref79).slice(1);
|
|
20056
20059
|
var elms = doc.querySelectorAll(selectorStr);
|
|
20057
20060
|
if (restSelector.length === 0) {
|
|
20058
20061
|
return Array.from(elms);
|