axe-core 4.6.1 → 4.6.2
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 +7 -8
- package/axe.min.js +3 -3
- package/package.json +1 -1
- package/sri-history.json +4 -0
package/axe.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! axe v4.6.
|
|
2
|
-
* Copyright (c)
|
|
1
|
+
/*! axe v4.6.2
|
|
2
|
+
* Copyright (c) 2023 Deque Systems, Inc.
|
|
3
3
|
*
|
|
4
4
|
* Your use of this Source Code Form is subject to the terms of the Mozilla Public
|
|
5
5
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}, _typeof(obj);
|
|
23
23
|
}
|
|
24
24
|
var axe = axe || {};
|
|
25
|
-
axe.version = '4.6.
|
|
25
|
+
axe.version = '4.6.2';
|
|
26
26
|
if (typeof define === 'function' && define.amd) {
|
|
27
27
|
define('axe-core', [], function() {
|
|
28
28
|
return axe;
|
|
@@ -18127,16 +18127,15 @@
|
|
|
18127
18127
|
function fullyEncompasses(node, rects) {
|
|
18128
18128
|
rects = Array.isArray(rects) ? rects : [ rects ];
|
|
18129
18129
|
var nodeRect = node.getBoundingClientRect();
|
|
18130
|
+
var right = nodeRect.right, bottom = nodeRect.bottom;
|
|
18130
18131
|
var style = window.getComputedStyle(node);
|
|
18131
18132
|
var overflow = style.getPropertyValue('overflow');
|
|
18132
18133
|
if ([ 'scroll', 'auto' ].includes(overflow) || node instanceof window.HTMLHtmlElement) {
|
|
18133
|
-
nodeRect.
|
|
18134
|
-
nodeRect.
|
|
18135
|
-
nodeRect.right = nodeRect.left + nodeRect.width;
|
|
18136
|
-
nodeRect.bottom = nodeRect.top + nodeRect.height;
|
|
18134
|
+
right = nodeRect.left + node.scrollWidth;
|
|
18135
|
+
bottom = nodeRect.top + node.scrollHeight;
|
|
18137
18136
|
}
|
|
18138
18137
|
return rects.every(function(rect) {
|
|
18139
|
-
return rect.top >= nodeRect.top && rect.bottom <=
|
|
18138
|
+
return rect.top >= nodeRect.top && rect.bottom <= bottom && rect.left >= nodeRect.left && rect.right <= right;
|
|
18140
18139
|
});
|
|
18141
18140
|
}
|
|
18142
18141
|
function normalizeBlendMode(blendmode) {
|