axe-core 4.11.0-canary.fcbbc81 → 4.11.0-canary.fde5ef9
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 +6 -6
- 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.fde5ef9
|
|
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.fde5ef9';
|
|
26
26
|
if (typeof define === 'function' && define.amd) {
|
|
27
27
|
define('axe-core', [], function() {
|
|
28
28
|
return axe;
|
|
@@ -16442,9 +16442,9 @@
|
|
|
16442
16442
|
key: 'getRelativeLuminance',
|
|
16443
16443
|
value: function getRelativeLuminance() {
|
|
16444
16444
|
var rSRGB = this.r, gSRGB = this.g, bSRGB = this.b;
|
|
16445
|
-
var r = rSRGB <= .
|
|
16446
|
-
var g2 = gSRGB <= .
|
|
16447
|
-
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);
|
|
16448
16448
|
return .2126 * r + .7152 * g2 + .0722 * b2;
|
|
16449
16449
|
}
|
|
16450
16450
|
}, {
|
|
@@ -20055,7 +20055,7 @@
|
|
|
20055
20055
|
return selectAllRecursive(selectorArr, doc);
|
|
20056
20056
|
}
|
|
20057
20057
|
function selectAllRecursive(_ref78, doc) {
|
|
20058
|
-
var _ref79 = _toArray(_ref78), selectorStr = _ref79[0], restSelector = _ref79.slice(1);
|
|
20058
|
+
var _ref79 = _toArray(_ref78), selectorStr = _ref79[0], restSelector = _arrayLikeToArray(_ref79).slice(1);
|
|
20059
20059
|
var elms = doc.querySelectorAll(selectorStr);
|
|
20060
20060
|
if (restSelector.length === 0) {
|
|
20061
20061
|
return Array.from(elms);
|