axe-core 4.6.2-canary.ec4c9df → 4.6.2-canary.fd3010f

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 CHANGED
@@ -1,4 +1,4 @@
1
- /*! axe v4.6.2-canary.ec4c9df
1
+ /*! axe v4.6.2-canary.fd3010f
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
@@ -22,7 +22,7 @@
22
22
  }, _typeof(obj);
23
23
  }
24
24
  var axe = axe || {};
25
- axe.version = '4.6.2-canary.ec4c9df';
25
+ axe.version = '4.6.2-canary.fd3010f';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -7128,6 +7128,9 @@
7128
7128
  isInTextBlock: function isInTextBlock() {
7129
7129
  return is_in_text_block_default;
7130
7130
  },
7131
+ isInert: function isInert() {
7132
+ return _isInert;
7133
+ },
7131
7134
  isModalOpen: function isModalOpen() {
7132
7135
  return is_modal_open_default;
7133
7136
  },
@@ -7841,13 +7844,32 @@
7841
7844
  }
7842
7845
  return hasFixedPosition(vNode.parent);
7843
7846
  });
7847
+ function _isInert(vNode) {
7848
+ var _ref17 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref17.skipAncestors;
7849
+ if (skipAncestors) {
7850
+ return isInertSelf(vNode);
7851
+ }
7852
+ return isInertAncestors(vNode);
7853
+ }
7854
+ var isInertSelf = memoize_default(function isInertSelfMemoized(vNode) {
7855
+ return vNode.hasAttr('inert');
7856
+ });
7857
+ var isInertAncestors = memoize_default(function isInertAncestorsMemoized(vNode) {
7858
+ if (isInertSelf(vNode)) {
7859
+ return true;
7860
+ }
7861
+ if (!vNode.parent) {
7862
+ return false;
7863
+ }
7864
+ return isInertAncestors(vNode.parent);
7865
+ });
7844
7866
  var allowedDisabledNodeNames = [ 'button', 'command', 'fieldset', 'keygen', 'optgroup', 'option', 'select', 'textarea', 'input' ];
7845
7867
  function isDisabledAttrAllowed(nodeName2) {
7846
7868
  return allowedDisabledNodeNames.includes(nodeName2);
7847
7869
  }
7848
7870
  function focusDisabled(el) {
7849
7871
  var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
7850
- if (isDisabledAttrAllowed(vNode.props.nodeName) && vNode.hasAttr('disabled')) {
7872
+ if (isDisabledAttrAllowed(vNode.props.nodeName) && vNode.hasAttr('disabled') || _isInert(vNode)) {
7851
7873
  return true;
7852
7874
  }
7853
7875
  var parentNode = vNode.parent;
@@ -8061,8 +8083,8 @@
8061
8083
  function getFarthestPoint(rectA, rectB) {
8062
8084
  var dimensionProps = [ [ 'x', 'left', 'right', 'width' ], [ 'y', 'top', 'bottom', 'height' ] ];
8063
8085
  var farthestPoint = {};
8064
- dimensionProps.forEach(function(_ref17) {
8065
- var _ref18 = _slicedToArray(_ref17, 4), axis = _ref18[0], start = _ref18[1], end = _ref18[2], diameter = _ref18[3];
8086
+ dimensionProps.forEach(function(_ref18) {
8087
+ var _ref19 = _slicedToArray(_ref18, 4), axis = _ref19[0], start = _ref19[1], end = _ref19[2], diameter = _ref19[3];
8066
8088
  if (rectB[start] < rectA[start] && rectB[end] > rectA[end]) {
8067
8089
  farthestPoint[axis] = rectA[start] + rectA[diameter] / 2;
8068
8090
  return;
@@ -8078,8 +8100,8 @@
8078
8100
  });
8079
8101
  return farthestPoint;
8080
8102
  }
8081
- function getClosestPoint(_ref19, ownRect, adjacentRect) {
8082
- var x = _ref19.x, y = _ref19.y;
8103
+ function getClosestPoint(_ref20, ownRect, adjacentRect) {
8104
+ var x = _ref20.x, y = _ref20.y;
8083
8105
  if (pointInRect({
8084
8106
  x: x,
8085
8107
  y: y
@@ -8134,12 +8156,12 @@
8134
8156
  }
8135
8157
  return Math.sqrt(Math.pow(xDistance, 2) + Math.pow(yDistance, 2));
8136
8158
  }
8137
- function pointInRect(_ref20, rect) {
8138
- var x = _ref20.x, y = _ref20.y;
8159
+ function pointInRect(_ref21, rect) {
8160
+ var x = _ref21.x, y = _ref21.y;
8139
8161
  return y >= rect.top && x <= rect.right && y <= rect.bottom && x >= rect.left;
8140
8162
  }
8141
- function getCornerInAdjacentRect(_ref21, ownRect, adjacentRect) {
8142
- var x = _ref21.x, y = _ref21.y;
8163
+ function getCornerInAdjacentRect(_ref22, ownRect, adjacentRect) {
8164
+ var x = _ref22.x, y = _ref22.y;
8143
8165
  var closestX, closestY;
8144
8166
  if (x === ownRect.left && ownRect.right < adjacentRect.right) {
8145
8167
  closestX = ownRect.right;
@@ -8176,8 +8198,8 @@
8176
8198
  };
8177
8199
  }
8178
8200
  }
8179
- function _getRectCenter(_ref22) {
8180
- var left = _ref22.left, top = _ref22.top, width = _ref22.width, height = _ref22.height;
8201
+ function _getRectCenter(_ref23) {
8202
+ var left = _ref23.left, top = _ref23.top, width = _ref23.width, height = _ref23.height;
8181
8203
  return new window.DOMPoint(left + width / 2, top + height / 2);
8182
8204
  }
8183
8205
  function _hasVisualOverlap(vNodeA, vNodeB) {
@@ -10339,7 +10361,7 @@
10339
10361
  }
10340
10362
  var is_unsupported_role_default = isUnsupportedRole;
10341
10363
  function isValidRole(role) {
10342
- var _ref23 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref23.allowAbstract, _ref23$flagUnsupporte = _ref23.flagUnsupported, flagUnsupported = _ref23$flagUnsupporte === void 0 ? false : _ref23$flagUnsupporte;
10364
+ var _ref24 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref24.allowAbstract, _ref24$flagUnsupporte = _ref24.flagUnsupported, flagUnsupported = _ref24$flagUnsupporte === void 0 ? false : _ref24$flagUnsupporte;
10343
10365
  var roleDefinition = standards_default.ariaRoles[role];
10344
10366
  var isRoleUnsupported = is_unsupported_role_default(role);
10345
10367
  if (!roleDefinition || flagUnsupported && isRoleUnsupported) {
@@ -10349,7 +10371,7 @@
10349
10371
  }
10350
10372
  var is_valid_role_default = isValidRole;
10351
10373
  function getExplicitRole(vNode) {
10352
- var _ref24 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref24.fallback, abstracts = _ref24.abstracts, dpub = _ref24.dpub;
10374
+ var _ref25 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref25.fallback, abstracts = _ref25.abstracts, dpub = _ref25.dpub;
10353
10375
  vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
10354
10376
  if (vNode.props.nodeType !== 1) {
10355
10377
  return null;
@@ -10787,7 +10809,7 @@
10787
10809
  matches_default2.semanticRole = semantic_role_default;
10788
10810
  var matches_default3 = matches_default2;
10789
10811
  function getElementSpec(vNode) {
10790
- var _ref25 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref25$noMatchAccessi = _ref25.noMatchAccessibleName, noMatchAccessibleName = _ref25$noMatchAccessi === void 0 ? false : _ref25$noMatchAccessi;
10812
+ var _ref26 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref26$noMatchAccessi = _ref26.noMatchAccessibleName, noMatchAccessibleName = _ref26$noMatchAccessi === void 0 ? false : _ref26$noMatchAccessi;
10791
10813
  var standard = standards_default.htmlElms[vNode.props.nodeName];
10792
10814
  if (!standard) {
10793
10815
  return {};
@@ -10824,7 +10846,7 @@
10824
10846
  }
10825
10847
  var get_element_spec_default = getElementSpec;
10826
10848
  function implicitRole2(node) {
10827
- var _ref26 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref26.chromium;
10849
+ var _ref27 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref27.chromium;
10828
10850
  var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
10829
10851
  node = vNode.actualNode;
10830
10852
  if (!vNode) {
@@ -10877,8 +10899,8 @@
10877
10899
  }
10878
10900
  return getInheritedRole(vNode.parent, explicitRoleOptions);
10879
10901
  }
10880
- function resolveImplicitRole(vNode, _ref27) {
10881
- var chromium = _ref27.chromium, explicitRoleOptions = _objectWithoutProperties(_ref27, _excluded4);
10902
+ function resolveImplicitRole(vNode, _ref28) {
10903
+ var chromium = _ref28.chromium, explicitRoleOptions = _objectWithoutProperties(_ref28, _excluded4);
10882
10904
  var implicitRole3 = implicit_role_default(vNode, {
10883
10905
  chromium: chromium
10884
10906
  });
@@ -10898,8 +10920,8 @@
10898
10920
  return hasGlobalAria || _isFocusable(vNode);
10899
10921
  }
10900
10922
  function resolveRole(node) {
10901
- var _ref28 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10902
- var noImplicit = _ref28.noImplicit, roleOptions = _objectWithoutProperties(_ref28, _excluded5);
10923
+ var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10924
+ var noImplicit = _ref29.noImplicit, roleOptions = _objectWithoutProperties(_ref29, _excluded5);
10903
10925
  var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
10904
10926
  if (vNode.props.nodeType !== 1) {
10905
10927
  return null;
@@ -10917,8 +10939,8 @@
10917
10939
  return explicitRole2;
10918
10940
  }
10919
10941
  function getRole(node) {
10920
- var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10921
- var noPresentational = _ref29.noPresentational, options = _objectWithoutProperties(_ref29, _excluded6);
10942
+ var _ref30 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
10943
+ var noPresentational = _ref30.noPresentational, options = _objectWithoutProperties(_ref30, _excluded6);
10922
10944
  var role = resolveRole(node, options);
10923
10945
  if (noPresentational && [ 'presentation', 'none' ].includes(role)) {
10924
10946
  return null;
@@ -10939,7 +10961,7 @@
10939
10961
  }
10940
10962
  var title_text_default = titleText;
10941
10963
  function namedFromContents(vNode) {
10942
- var _ref30 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref30.strict;
10964
+ var _ref31 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref31.strict;
10943
10965
  vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
10944
10966
  if (vNode.props.nodeType !== 1) {
10945
10967
  return false;
@@ -11064,12 +11086,12 @@
11064
11086
  button: ''
11065
11087
  };
11066
11088
  var nativeTextMethods = {
11067
- valueText: function valueText(_ref31) {
11068
- var actualNode = _ref31.actualNode;
11089
+ valueText: function valueText(_ref32) {
11090
+ var actualNode = _ref32.actualNode;
11069
11091
  return actualNode.value || '';
11070
11092
  },
11071
- buttonDefaultText: function buttonDefaultText(_ref32) {
11072
- var actualNode = _ref32.actualNode;
11093
+ buttonDefaultText: function buttonDefaultText(_ref33) {
11094
+ var actualNode = _ref33.actualNode;
11073
11095
  return defaultButtonValues[actualNode.type] || '';
11074
11096
  },
11075
11097
  tableCaptionText: descendantText.bind(null, 'caption'),
@@ -11089,8 +11111,8 @@
11089
11111
  function attrText(attr, vNode) {
11090
11112
  return vNode.attr(attr) || '';
11091
11113
  }
11092
- function descendantText(nodeName2, _ref33, context) {
11093
- var actualNode = _ref33.actualNode;
11114
+ function descendantText(nodeName2, _ref34, context) {
11115
+ var actualNode = _ref34.actualNode;
11094
11116
  nodeName2 = nodeName2.toLowerCase();
11095
11117
  var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');
11096
11118
  var candidate = actualNode.querySelector(nodeNames2);
@@ -11134,7 +11156,9 @@
11134
11156
  return isVisibleToScreenReadersVirtual(vNode);
11135
11157
  }
11136
11158
  var isVisibleToScreenReadersVirtual = memoize_default(function isVisibleToScreenReadersMemoized(vNode, isAncestor) {
11137
- if (ariaHidden(vNode)) {
11159
+ if (ariaHidden(vNode) || _isInert(vNode, {
11160
+ skipAncestors: true
11161
+ })) {
11138
11162
  return false;
11139
11163
  }
11140
11164
  if (vNode.actualNode && vNode.props.nodeName === 'area') {
@@ -11519,7 +11543,7 @@
11519
11543
  locations: [ 'billing', 'shipping' ]
11520
11544
  };
11521
11545
  function isValidAutocomplete(autocompleteValue) {
11522
- var _ref34 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref34$looseTyped = _ref34.looseTyped, looseTyped = _ref34$looseTyped === void 0 ? false : _ref34$looseTyped, _ref34$stateTerms = _ref34.stateTerms, stateTerms = _ref34$stateTerms === void 0 ? [] : _ref34$stateTerms, _ref34$locations = _ref34.locations, locations = _ref34$locations === void 0 ? [] : _ref34$locations, _ref34$qualifiers = _ref34.qualifiers, qualifiers = _ref34$qualifiers === void 0 ? [] : _ref34$qualifiers, _ref34$standaloneTerm = _ref34.standaloneTerms, standaloneTerms = _ref34$standaloneTerm === void 0 ? [] : _ref34$standaloneTerm, _ref34$qualifiedTerms = _ref34.qualifiedTerms, qualifiedTerms = _ref34$qualifiedTerms === void 0 ? [] : _ref34$qualifiedTerms;
11546
+ var _ref35 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref35$looseTyped = _ref35.looseTyped, looseTyped = _ref35$looseTyped === void 0 ? false : _ref35$looseTyped, _ref35$stateTerms = _ref35.stateTerms, stateTerms = _ref35$stateTerms === void 0 ? [] : _ref35$stateTerms, _ref35$locations = _ref35.locations, locations = _ref35$locations === void 0 ? [] : _ref35$locations, _ref35$qualifiers = _ref35.qualifiers, qualifiers = _ref35$qualifiers === void 0 ? [] : _ref35$qualifiers, _ref35$standaloneTerm = _ref35.standaloneTerms, standaloneTerms = _ref35$standaloneTerm === void 0 ? [] : _ref35$standaloneTerm, _ref35$qualifiedTerms = _ref35.qualifiedTerms, qualifiedTerms = _ref35$qualifiedTerms === void 0 ? [] : _ref35$qualifiedTerms;
11523
11547
  autocompleteValue = autocompleteValue.toLowerCase().trim();
11524
11548
  stateTerms = stateTerms.concat(_autocomplete.stateTerms);
11525
11549
  if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {
@@ -11530,6 +11554,12 @@
11530
11554
  standaloneTerms = standaloneTerms.concat(_autocomplete.standaloneTerms);
11531
11555
  qualifiedTerms = qualifiedTerms.concat(_autocomplete.qualifiedTerms);
11532
11556
  var autocompleteTerms = autocompleteValue.split(/\s+/g);
11557
+ if (autocompleteTerms[autocompleteTerms.length - 1] === 'webauthn') {
11558
+ autocompleteTerms.pop();
11559
+ if (autocompleteTerms.length === 0) {
11560
+ return false;
11561
+ }
11562
+ }
11533
11563
  if (!looseTyped) {
11534
11564
  if (autocompleteTerms[0].length > 8 && autocompleteTerms[0].substr(0, 8) === 'section-') {
11535
11565
  autocompleteTerms.shift();
@@ -11778,8 +11808,8 @@
11778
11808
  if (hiddenTextElms.includes(elm.props.nodeName)) {
11779
11809
  return false;
11780
11810
  }
11781
- return elm.children.some(function(_ref35) {
11782
- var props = _ref35.props;
11811
+ return elm.children.some(function(_ref36) {
11812
+ var props = _ref36.props;
11783
11813
  return props.nodeType === 3 && props.nodeValue.trim();
11784
11814
  });
11785
11815
  }
@@ -12091,8 +12121,8 @@
12091
12121
  }
12092
12122
  return parseFloat(value);
12093
12123
  }
12094
- function hslToRgb(_ref36) {
12095
- var _ref37 = _slicedToArray(_ref36, 4), hue = _ref37[0], saturation = _ref37[1], lightness = _ref37[2], alpha = _ref37[3];
12124
+ function hslToRgb(_ref37) {
12125
+ var _ref38 = _slicedToArray(_ref37, 4), hue = _ref38[0], saturation = _ref38[1], lightness = _ref38[2], alpha = _ref38[3];
12096
12126
  saturation /= 255;
12097
12127
  lightness /= 255;
12098
12128
  var high = (1 - Math.abs(2 * lightness - 1)) * saturation;
@@ -12141,7 +12171,7 @@
12141
12171
  var colorFnRegex = /^((?:rgb|hsl)a?)\s*\(([^\)]*)\)/i;
12142
12172
  this.parseString = function parseString(colorString) {
12143
12173
  if (standards_default.cssColors[colorString] || colorString === 'transparent') {
12144
- var _ref38 = standards_default.cssColors[colorString] || [ 0, 0, 0 ], _ref39 = _slicedToArray(_ref38, 3), red2 = _ref39[0], green2 = _ref39[1], blue2 = _ref39[2];
12174
+ var _ref39 = standards_default.cssColors[colorString] || [ 0, 0, 0 ], _ref40 = _slicedToArray(_ref39, 3), red2 = _ref40[0], green2 = _ref40[1], blue2 = _ref40[2];
12145
12175
  this.red = red2;
12146
12176
  this.green = green2;
12147
12177
  this.blue = blue2;
@@ -12191,7 +12221,7 @@
12191
12221
  }
12192
12222
  };
12193
12223
  this.parseColorFnString = function parseColorFnString(colorString) {
12194
- var _ref40 = colorString.match(colorFnRegex) || [], _ref41 = _slicedToArray(_ref40, 3), colorFunc = _ref41[1], colorValStr = _ref41[2];
12224
+ var _ref41 = colorString.match(colorFnRegex) || [], _ref42 = _slicedToArray(_ref41, 3), colorFunc = _ref42[1], colorValStr = _ref42[2];
12195
12225
  if (!colorFunc || !colorValStr) {
12196
12226
  return;
12197
12227
  }
@@ -12301,8 +12331,8 @@
12301
12331
  if (!refs || !refs.length) {
12302
12332
  return false;
12303
12333
  }
12304
- return refs.some(function(_ref42) {
12305
- var actualNode = _ref42.actualNode;
12334
+ return refs.some(function(_ref43) {
12335
+ var actualNode = _ref43.actualNode;
12306
12336
  return isVisible(actualNode, screenReader, recursed);
12307
12337
  });
12308
12338
  }
@@ -12314,7 +12344,7 @@
12314
12344
  var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
12315
12345
  el = vNode ? vNode.actualNode : el;
12316
12346
  var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');
12317
- var _ref43 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref43.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref43.DOCUMENT_FRAGMENT_NODE;
12347
+ var _ref44 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref44.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref44.DOCUMENT_FRAGMENT_NODE;
12318
12348
  var nodeType = vNode ? vNode.props.nodeType : el.nodeType;
12319
12349
  var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();
12320
12350
  if (vNode && typeof vNode[cacheName] !== 'undefined') {
@@ -13125,7 +13155,7 @@
13125
13155
  return {};
13126
13156
  }
13127
13157
  var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
13128
- var _ref44 = getOrientation(win) || {}, angle = _ref44.angle, type = _ref44.type;
13158
+ var _ref45 = getOrientation(win) || {}, angle = _ref45.angle, type = _ref45.type;
13129
13159
  return {
13130
13160
  userAgent: navigator.userAgent,
13131
13161
  windowWidth: innerWidth,
@@ -13134,12 +13164,12 @@
13134
13164
  orientationType: type
13135
13165
  };
13136
13166
  }
13137
- function getOrientation(_ref45) {
13138
- var screen = _ref45.screen;
13167
+ function getOrientation(_ref46) {
13168
+ var screen = _ref46.screen;
13139
13169
  return screen.orientation || screen.msOrientation || screen.mozOrientation;
13140
13170
  }
13141
- function createFrameContext(frame, _ref46) {
13142
- var focusable = _ref46.focusable, page = _ref46.page;
13171
+ function createFrameContext(frame, _ref47) {
13172
+ var focusable = _ref47.focusable, page = _ref47.page;
13143
13173
  return {
13144
13174
  node: frame,
13145
13175
  include: [],
@@ -13378,8 +13408,8 @@
13378
13408
  }
13379
13409
  context.frames.push(createFrameContext(frame, context));
13380
13410
  }
13381
- function isPageContext(_ref47) {
13382
- var include = _ref47.include;
13411
+ function isPageContext(_ref48) {
13412
+ var include = _ref48.include;
13383
13413
  return include.length === 1 && include[0].actualNode === document.documentElement;
13384
13414
  }
13385
13415
  function validateContext(context) {
@@ -13388,8 +13418,8 @@
13388
13418
  throw new Error('No elements found for include in ' + env + ' Context');
13389
13419
  }
13390
13420
  }
13391
- function getRootNode2(_ref48) {
13392
- var include = _ref48.include, exclude = _ref48.exclude;
13421
+ function getRootNode2(_ref49) {
13422
+ var include = _ref49.include, exclude = _ref49.exclude;
13393
13423
  var selectors = Array.from(include).concat(Array.from(exclude));
13394
13424
  for (var _i13 = 0; _i13 < selectors.length; _i13++) {
13395
13425
  var item = selectors[_i13];
@@ -13408,8 +13438,8 @@
13408
13438
  return [];
13409
13439
  }
13410
13440
  var _Context = new Context(context), frames = _Context.frames;
13411
- return frames.map(function(_ref49) {
13412
- var node = _ref49.node, frameContext = _objectWithoutProperties(_ref49, _excluded7);
13441
+ return frames.map(function(_ref50) {
13442
+ var node = _ref50.node, frameContext = _objectWithoutProperties(_ref50, _excluded7);
13413
13443
  frameContext.initiator = false;
13414
13444
  var frameSelector = _getAncestry(node);
13415
13445
  return {
@@ -13558,8 +13588,8 @@
13558
13588
  return !!standards_default.htmlElms[nodeName2];
13559
13589
  }
13560
13590
  var is_html_element_default = isHtmlElement;
13561
- function _isNodeInContext(node, _ref50) {
13562
- var _ref50$include = _ref50.include, include = _ref50$include === void 0 ? [] : _ref50$include, _ref50$exclude = _ref50.exclude, exclude = _ref50$exclude === void 0 ? [] : _ref50$exclude;
13591
+ function _isNodeInContext(node, _ref51) {
13592
+ var _ref51$include = _ref51.include, include = _ref51$include === void 0 ? [] : _ref51$include, _ref51$exclude = _ref51.exclude, exclude = _ref51$exclude === void 0 ? [] : _ref51$exclude;
13563
13593
  var filterInclude = include.filter(function(candidate) {
13564
13594
  return _contains(candidate, node);
13565
13595
  });
@@ -14112,8 +14142,8 @@
14112
14142
  return matchExpressions(domTree, expressions, filter);
14113
14143
  }
14114
14144
  var query_selector_all_filter_default = querySelectorAllFilter;
14115
- function preloadCssom(_ref51) {
14116
- var _ref51$treeRoot = _ref51.treeRoot, treeRoot = _ref51$treeRoot === void 0 ? axe._tree[0] : _ref51$treeRoot;
14145
+ function preloadCssom(_ref52) {
14146
+ var _ref52$treeRoot = _ref52.treeRoot, treeRoot = _ref52$treeRoot === void 0 ? axe._tree[0] : _ref52$treeRoot;
14117
14147
  var rootNodes = getAllRootNodesInTree(treeRoot);
14118
14148
  if (!rootNodes.length) {
14119
14149
  return Promise.resolve();
@@ -14143,8 +14173,8 @@
14143
14173
  }
14144
14174
  function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) {
14145
14175
  var promises = [];
14146
- rootNodes.forEach(function(_ref52, index) {
14147
- var rootNode = _ref52.rootNode, shadowId = _ref52.shadowId;
14176
+ rootNodes.forEach(function(_ref53, index) {
14177
+ var rootNode = _ref53.rootNode, shadowId = _ref53.shadowId;
14148
14178
  var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet);
14149
14179
  if (!sheets) {
14150
14180
  return Promise.all(promises);
@@ -14228,10 +14258,10 @@
14228
14258
  return true;
14229
14259
  });
14230
14260
  }
14231
- function preloadMedia(_ref53) {
14232
- var _ref53$treeRoot = _ref53.treeRoot, treeRoot = _ref53$treeRoot === void 0 ? axe._tree[0] : _ref53$treeRoot;
14233
- var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref54) {
14234
- var actualNode = _ref54.actualNode;
14261
+ function preloadMedia(_ref54) {
14262
+ var _ref54$treeRoot = _ref54.treeRoot, treeRoot = _ref54$treeRoot === void 0 ? axe._tree[0] : _ref54$treeRoot;
14263
+ var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref55) {
14264
+ var actualNode = _ref55.actualNode;
14235
14265
  if (actualNode.hasAttribute('src')) {
14236
14266
  return !!actualNode.getAttribute('src');
14237
14267
  }
@@ -14243,8 +14273,8 @@
14243
14273
  }
14244
14274
  return true;
14245
14275
  });
14246
- return Promise.all(mediaVirtualNodes.map(function(_ref55) {
14247
- var actualNode = _ref55.actualNode;
14276
+ return Promise.all(mediaVirtualNodes.map(function(_ref56) {
14277
+ var actualNode = _ref56.actualNode;
14248
14278
  return isMediaElementReady(actualNode);
14249
14279
  }));
14250
14280
  }
@@ -14549,8 +14579,8 @@
14549
14579
  }
14550
14580
  }
14551
14581
  function setScrollState(scrollState) {
14552
- scrollState.forEach(function(_ref57) {
14553
- var elm = _ref57.elm, top = _ref57.top, left = _ref57.left;
14582
+ scrollState.forEach(function(_ref58) {
14583
+ var elm = _ref58.elm, top = _ref58.top, left = _ref58.left;
14554
14584
  return setScroll(elm, top, left);
14555
14585
  });
14556
14586
  }
@@ -14578,8 +14608,8 @@
14578
14608
  }
14579
14609
  return selectAllRecursive(selectorArr, doc);
14580
14610
  }
14581
- function selectAllRecursive(_ref58, doc) {
14582
- var _ref59 = _toArray(_ref58), selectorStr = _ref59[0], restSelector = _ref59.slice(1);
14611
+ function selectAllRecursive(_ref59, doc) {
14612
+ var _ref60 = _toArray(_ref59), selectorStr = _ref60[0], restSelector = _ref60.slice(1);
14583
14613
  var elms = doc.querySelectorAll(selectorStr);
14584
14614
  if (restSelector.length === 0) {
14585
14615
  return Array.from(elms);
@@ -14683,9 +14713,9 @@
14683
14713
  nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;
14684
14714
  });
14685
14715
  function normaliseProps(serialNode) {
14686
- var _serialNode$nodeName, _ref60, _serialNode$nodeType;
14716
+ var _serialNode$nodeName, _ref61, _serialNode$nodeType;
14687
14717
  var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];
14688
- var nodeType = (_ref60 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref60 !== void 0 ? _ref60 : 1;
14718
+ var nodeType = (_ref61 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref61 !== void 0 ? _ref61 : 1;
14689
14719
  assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
14690
14720
  assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
14691
14721
  nodeName2 = nodeName2.toLowerCase();
@@ -14706,8 +14736,8 @@
14706
14736
  delete props.attributes;
14707
14737
  return Object.freeze(props);
14708
14738
  }
14709
- function normaliseAttrs(_ref61) {
14710
- var _ref61$attributes = _ref61.attributes, attributes2 = _ref61$attributes === void 0 ? {} : _ref61$attributes;
14739
+ function normaliseAttrs(_ref62) {
14740
+ var _ref62$attributes = _ref62.attributes, attributes2 = _ref62$attributes === void 0 ? {} : _ref62$attributes;
14711
14741
  var attrMap = {
14712
14742
  htmlFor: 'for',
14713
14743
  className: 'class'
@@ -16895,8 +16925,8 @@
16895
16925
  nodeName: [ 'abbr', 'address', 'canvas', 'div', 'p', 'pre', 'blockquote', 'ins', 'del', 'output', 'span', 'table', 'tbody', 'thead', 'tfoot', 'td', 'em', 'strong', 'small', 's', 'cite', 'q', 'dfn', 'abbr', 'time', 'code', 'var', 'samp', 'kbd', 'sub', 'sup', 'i', 'b', 'u', 'mark', 'ruby', 'rt', 'rp', 'bdi', 'bdo', 'br', 'wbr', 'th', 'tr' ]
16896
16926
  } ];
16897
16927
  lookupTable.evaluateRoleForElement = {
16898
- A: function A(_ref62) {
16899
- var node = _ref62.node, out = _ref62.out;
16928
+ A: function A(_ref63) {
16929
+ var node = _ref63.node, out = _ref63.out;
16900
16930
  if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
16901
16931
  return true;
16902
16932
  }
@@ -16905,19 +16935,19 @@
16905
16935
  }
16906
16936
  return true;
16907
16937
  },
16908
- AREA: function AREA(_ref63) {
16909
- var node = _ref63.node;
16938
+ AREA: function AREA(_ref64) {
16939
+ var node = _ref64.node;
16910
16940
  return !node.href;
16911
16941
  },
16912
- BUTTON: function BUTTON(_ref64) {
16913
- var node = _ref64.node, role = _ref64.role, out = _ref64.out;
16942
+ BUTTON: function BUTTON(_ref65) {
16943
+ var node = _ref65.node, role = _ref65.role, out = _ref65.out;
16914
16944
  if (node.getAttribute('type') === 'menu') {
16915
16945
  return role === 'menuitem';
16916
16946
  }
16917
16947
  return out;
16918
16948
  },
16919
- IMG: function IMG(_ref65) {
16920
- var node = _ref65.node, role = _ref65.role, out = _ref65.out;
16949
+ IMG: function IMG(_ref66) {
16950
+ var node = _ref66.node, role = _ref66.role, out = _ref66.out;
16921
16951
  switch (node.alt) {
16922
16952
  case null:
16923
16953
  return out;
@@ -16929,8 +16959,8 @@
16929
16959
  return role !== 'presentation' && role !== 'none';
16930
16960
  }
16931
16961
  },
16932
- INPUT: function INPUT(_ref66) {
16933
- var node = _ref66.node, role = _ref66.role, out = _ref66.out;
16962
+ INPUT: function INPUT(_ref67) {
16963
+ var node = _ref67.node, role = _ref67.role, out = _ref67.out;
16934
16964
  switch (node.type) {
16935
16965
  case 'button':
16936
16966
  case 'image':
@@ -16960,32 +16990,32 @@
16960
16990
  return false;
16961
16991
  }
16962
16992
  },
16963
- LI: function LI(_ref67) {
16964
- var node = _ref67.node, out = _ref67.out;
16993
+ LI: function LI(_ref68) {
16994
+ var node = _ref68.node, out = _ref68.out;
16965
16995
  var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');
16966
16996
  if (hasImplicitListitemRole) {
16967
16997
  return out;
16968
16998
  }
16969
16999
  return true;
16970
17000
  },
16971
- MENU: function MENU(_ref68) {
16972
- var node = _ref68.node;
17001
+ MENU: function MENU(_ref69) {
17002
+ var node = _ref69.node;
16973
17003
  if (node.getAttribute('type') === 'context') {
16974
17004
  return false;
16975
17005
  }
16976
17006
  return true;
16977
17007
  },
16978
- OPTION: function OPTION(_ref69) {
16979
- var node = _ref69.node;
17008
+ OPTION: function OPTION(_ref70) {
17009
+ var node = _ref70.node;
16980
17010
  var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');
16981
17011
  return !withinOptionList;
16982
17012
  },
16983
- SELECT: function SELECT(_ref70) {
16984
- var node = _ref70.node, role = _ref70.role;
17013
+ SELECT: function SELECT(_ref71) {
17014
+ var node = _ref71.node, role = _ref71.role;
16985
17015
  return !node.multiple && node.size <= 1 && role === 'menu';
16986
17016
  },
16987
- SVG: function SVG(_ref71) {
16988
- var node = _ref71.node, out = _ref71.out;
17017
+ SVG: function SVG(_ref72) {
17018
+ var node = _ref72.node, out = _ref72.out;
16989
17019
  if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {
16990
17020
  return true;
16991
17021
  }
@@ -17394,13 +17424,13 @@
17394
17424
  return true;
17395
17425
  }
17396
17426
  var ownedRoles = getOwnedRoles(virtualNode, required);
17397
- var unallowed = ownedRoles.filter(function(_ref72) {
17398
- var role2 = _ref72.role;
17427
+ var unallowed = ownedRoles.filter(function(_ref73) {
17428
+ var role2 = _ref73.role;
17399
17429
  return !required.includes(role2);
17400
17430
  });
17401
17431
  if (unallowed.length) {
17402
- this.relatedNodes(unallowed.map(function(_ref73) {
17403
- var ownedElement = _ref73.ownedElement;
17432
+ this.relatedNodes(unallowed.map(function(_ref74) {
17433
+ var ownedElement = _ref74.ownedElement;
17404
17434
  return ownedElement;
17405
17435
  }));
17406
17436
  this.data({
@@ -18002,7 +18032,7 @@
18002
18032
  return true;
18003
18033
  }
18004
18034
  function getTextShadowColors(node) {
18005
- var _ref74 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref74.minRatio, maxRatio = _ref74.maxRatio;
18035
+ var _ref75 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref75.minRatio, maxRatio = _ref75.maxRatio;
18006
18036
  var style = window.getComputedStyle(node);
18007
18037
  var textShadow = style.getPropertyValue('text-shadow');
18008
18038
  if (textShadow === 'none') {
@@ -18013,8 +18043,8 @@
18013
18043
  assert_default(isNaN(fontSize) === false, 'Unable to determine font-size value '.concat(fontSizeStr));
18014
18044
  var shadowColors = [];
18015
18045
  var shadows = parseTextShadows(textShadow);
18016
- shadows.forEach(function(_ref75) {
18017
- var colorStr = _ref75.colorStr, pixels = _ref75.pixels;
18046
+ shadows.forEach(function(_ref76) {
18047
+ var colorStr = _ref76.colorStr, pixels = _ref76.pixels;
18018
18048
  colorStr = colorStr || style.getPropertyValue('color');
18019
18049
  var _pixels = _slicedToArray(pixels, 3), offsetY = _pixels[0], offsetX = _pixels[1], _pixels$ = _pixels[2], blurRadius = _pixels$ === void 0 ? 0 : _pixels$;
18020
18050
  if ((!minRatio || blurRadius >= fontSize * minRatio) && (!maxRatio || blurRadius < fontSize * maxRatio)) {
@@ -18064,8 +18094,8 @@
18064
18094
  }
18065
18095
  return shadows;
18066
18096
  }
18067
- function textShadowColor(_ref76) {
18068
- var colorStr = _ref76.colorStr, offsetX = _ref76.offsetX, offsetY = _ref76.offsetY, blurRadius = _ref76.blurRadius, fontSize = _ref76.fontSize;
18097
+ function textShadowColor(_ref77) {
18098
+ var colorStr = _ref77.colorStr, offsetX = _ref77.offsetX, offsetY = _ref77.offsetY, blurRadius = _ref77.blurRadius, fontSize = _ref77.fontSize;
18069
18099
  if (offsetX > blurRadius || offsetY > blurRadius) {
18070
18100
  return new color_default(0, 0, 0, 0);
18071
18101
  }
@@ -18242,8 +18272,8 @@
18242
18272
  function getTextColor(nodeStyle) {
18243
18273
  return new color_default().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color'));
18244
18274
  }
18245
- function getStrokeColor(nodeStyle, _ref77) {
18246
- var _ref77$textStrokeEmMi = _ref77.textStrokeEmMin, textStrokeEmMin = _ref77$textStrokeEmMi === void 0 ? 0 : _ref77$textStrokeEmMi;
18275
+ function getStrokeColor(nodeStyle, _ref78) {
18276
+ var _ref78$textStrokeEmMi = _ref78.textStrokeEmMin, textStrokeEmMin = _ref78$textStrokeEmMi === void 0 ? 0 : _ref78$textStrokeEmMi;
18247
18277
  var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width'));
18248
18278
  if (strokeWidth === 0) {
18249
18279
  return null;
@@ -18305,7 +18335,7 @@
18305
18335
  var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold';
18306
18336
  var ptSize = Math.ceil(fontSize * 72) / 96;
18307
18337
  var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;
18308
- var _ref78 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref78.expected, minThreshold = _ref78.minThreshold, maxThreshold = _ref78.maxThreshold;
18338
+ var _ref79 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref79.expected, minThreshold = _ref79.minThreshold, maxThreshold = _ref79.maxThreshold;
18309
18339
  var pseudoElm = findPseudoElement(virtualNode, {
18310
18340
  ignorePseudo: ignorePseudo,
18311
18341
  pseudoSizeThreshold: pseudoSizeThreshold
@@ -18384,8 +18414,8 @@
18384
18414
  }
18385
18415
  return isValid;
18386
18416
  }
18387
- function findPseudoElement(vNode, _ref79) {
18388
- var _ref79$pseudoSizeThre = _ref79.pseudoSizeThreshold, pseudoSizeThreshold = _ref79$pseudoSizeThre === void 0 ? .25 : _ref79$pseudoSizeThre, _ref79$ignorePseudo = _ref79.ignorePseudo, ignorePseudo = _ref79$ignorePseudo === void 0 ? false : _ref79$ignorePseudo;
18417
+ function findPseudoElement(vNode, _ref80) {
18418
+ var _ref80$pseudoSizeThre = _ref80.pseudoSizeThreshold, pseudoSizeThreshold = _ref80$pseudoSizeThre === void 0 ? .25 : _ref80$pseudoSizeThre, _ref80$ignorePseudo = _ref80.ignorePseudo, ignorePseudo = _ref80$ignorePseudo === void 0 ? false : _ref80$ignorePseudo;
18389
18419
  if (ignorePseudo) {
18390
18420
  return;
18391
18421
  }
@@ -18427,7 +18457,7 @@
18427
18457
  }
18428
18458
  function parseUnit(str) {
18429
18459
  var unitRegex = /^([0-9.]+)([a-z]+)$/i;
18430
- var _ref80 = str.match(unitRegex) || [], _ref81 = _slicedToArray(_ref80, 3), _ref81$ = _ref81[1], value = _ref81$ === void 0 ? '' : _ref81$, _ref81$2 = _ref81[2], unit = _ref81$2 === void 0 ? '' : _ref81$2;
18460
+ var _ref81 = str.match(unitRegex) || [], _ref82 = _slicedToArray(_ref81, 3), _ref82$ = _ref82[1], value = _ref82$ === void 0 ? '' : _ref82$, _ref82$2 = _ref82[2], unit = _ref82$2 === void 0 ? '' : _ref82$2;
18431
18461
  return {
18432
18462
  value: parseFloat(value),
18433
18463
  unit: unit.toLowerCase()
@@ -18444,7 +18474,7 @@
18444
18474
  return blockLike2.indexOf(display) !== -1 || display.substr(0, 6) === 'table-';
18445
18475
  }
18446
18476
  function linkInTextBlockEvaluate(node, options) {
18447
- var requiredContrastRatio = options.requiredContrastRatio;
18477
+ var requiredContrastRatio = options.requiredContrastRatio, allowSameColor = options.allowSameColor;
18448
18478
  if (isBlock2(node)) {
18449
18479
  return false;
18450
18480
  }
@@ -18486,6 +18516,9 @@
18486
18516
  if (!textContrast) {
18487
18517
  return void 0;
18488
18518
  }
18519
+ if (allowSameColor && textContrast === 1 && backgroundContrast === 1) {
18520
+ return true;
18521
+ }
18489
18522
  if (textContrast === 1 && backgroundContrast > 1) {
18490
18523
  this.data({
18491
18524
  messageKey: 'bgContrast',
@@ -18768,8 +18801,8 @@
18768
18801
  }
18769
18802
  var focusable_element_evaluate_default = focusableElementEvaluate;
18770
18803
  function focusableModalOpenEvaluate(node, options, virtualNode) {
18771
- var tabbableElements = virtualNode.tabbableElements.map(function(_ref82) {
18772
- var actualNode = _ref82.actualNode;
18804
+ var tabbableElements = virtualNode.tabbableElements.map(function(_ref83) {
18805
+ var actualNode = _ref83.actualNode;
18773
18806
  return actualNode;
18774
18807
  });
18775
18808
  if (!tabbableElements || !tabbableElements.length) {
@@ -19250,8 +19283,8 @@
19250
19283
  this.relatedNodes(relatedNodes);
19251
19284
  return true;
19252
19285
  }
19253
- function getInvalidSelector(vChild, nested, _ref83) {
19254
- var _ref83$validRoles = _ref83.validRoles, validRoles = _ref83$validRoles === void 0 ? [] : _ref83$validRoles, _ref83$validNodeNames = _ref83.validNodeNames, validNodeNames = _ref83$validNodeNames === void 0 ? [] : _ref83$validNodeNames;
19286
+ function getInvalidSelector(vChild, nested, _ref84) {
19287
+ var _ref84$validRoles = _ref84.validRoles, validRoles = _ref84$validRoles === void 0 ? [] : _ref84$validRoles, _ref84$validNodeNames = _ref84.validNodeNames, validNodeNames = _ref84$validNodeNames === void 0 ? [] : _ref84$validNodeNames;
19255
19288
  var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue;
19256
19289
  var selector = nested ? 'div > ' : '';
19257
19290
  if (nodeType === 3 && nodeValue.trim() !== '') {
@@ -19484,8 +19517,8 @@
19484
19517
  }
19485
19518
  var no_autoplay_audio_evaluate_default = noAutoplayAudioEvaluate;
19486
19519
  function cssOrientationLockEvaluate(node, options, virtualNode, context) {
19487
- var _ref84 = context || {}, _ref84$cssom = _ref84.cssom, cssom = _ref84$cssom === void 0 ? void 0 : _ref84$cssom;
19488
- var _ref85 = options || {}, _ref85$degreeThreshol = _ref85.degreeThreshold, degreeThreshold = _ref85$degreeThreshol === void 0 ? 0 : _ref85$degreeThreshol;
19520
+ var _ref85 = context || {}, _ref85$cssom = _ref85.cssom, cssom = _ref85$cssom === void 0 ? void 0 : _ref85$cssom;
19521
+ var _ref86 = options || {}, _ref86$degreeThreshol = _ref86.degreeThreshold, degreeThreshold = _ref86$degreeThreshol === void 0 ? 0 : _ref86$degreeThreshol;
19489
19522
  if (!cssom || !cssom.length) {
19490
19523
  return void 0;
19491
19524
  }
@@ -19499,8 +19532,8 @@
19499
19532
  if (!orientationRules.length) {
19500
19533
  return 'continue';
19501
19534
  }
19502
- orientationRules.forEach(function(_ref86) {
19503
- var cssRules = _ref86.cssRules;
19535
+ orientationRules.forEach(function(_ref87) {
19536
+ var cssRules = _ref87.cssRules;
19504
19537
  Array.from(cssRules).forEach(function(cssRule) {
19505
19538
  var locked = getIsOrientationLocked(cssRule);
19506
19539
  if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {
@@ -19525,8 +19558,8 @@
19525
19558
  }
19526
19559
  return false;
19527
19560
  function groupCssomByDocument(cssObjectModel) {
19528
- return cssObjectModel.reduce(function(out, _ref87) {
19529
- var sheet = _ref87.sheet, root = _ref87.root, shadowId = _ref87.shadowId;
19561
+ return cssObjectModel.reduce(function(out, _ref88) {
19562
+ var sheet = _ref88.sheet, root = _ref88.root, shadowId = _ref88.shadowId;
19530
19563
  var key = shadowId ? shadowId : 'topDocument';
19531
19564
  if (!out[key]) {
19532
19565
  out[key] = {
@@ -19542,15 +19575,15 @@
19542
19575
  return out;
19543
19576
  }, {});
19544
19577
  }
19545
- function isMediaRuleWithOrientation(_ref88) {
19546
- var type = _ref88.type, cssText = _ref88.cssText;
19578
+ function isMediaRuleWithOrientation(_ref89) {
19579
+ var type = _ref89.type, cssText = _ref89.cssText;
19547
19580
  if (type !== 4) {
19548
19581
  return false;
19549
19582
  }
19550
19583
  return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText);
19551
19584
  }
19552
- function getIsOrientationLocked(_ref89) {
19553
- var selectorText = _ref89.selectorText, style = _ref89.style;
19585
+ function getIsOrientationLocked(_ref90) {
19586
+ var selectorText = _ref90.selectorText, style = _ref90.style;
19554
19587
  if (!selectorText || style.length <= 0) {
19555
19588
  return false;
19556
19589
  }
@@ -19597,7 +19630,7 @@
19597
19630
  }
19598
19631
  }
19599
19632
  function getAngleInDegrees(angleWithUnit) {
19600
- var _ref90 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref91 = _slicedToArray(_ref90, 1), unit = _ref91[0];
19633
+ var _ref91 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref92 = _slicedToArray(_ref91, 1), unit = _ref92[0];
19601
19634
  if (!unit) {
19602
19635
  return;
19603
19636
  }
@@ -19646,7 +19679,7 @@
19646
19679
  }
19647
19680
  var css_orientation_lock_evaluate_default = cssOrientationLockEvaluate;
19648
19681
  function metaViewportScaleEvaluate(node, options, virtualNode) {
19649
- var _ref92 = options || {}, _ref92$scaleMinimum = _ref92.scaleMinimum, scaleMinimum = _ref92$scaleMinimum === void 0 ? 2 : _ref92$scaleMinimum, _ref92$lowerBound = _ref92.lowerBound, lowerBound = _ref92$lowerBound === void 0 ? false : _ref92$lowerBound;
19682
+ var _ref93 = options || {}, _ref93$scaleMinimum = _ref93.scaleMinimum, scaleMinimum = _ref93$scaleMinimum === void 0 ? 2 : _ref93$scaleMinimum, _ref93$lowerBound = _ref93.lowerBound, lowerBound = _ref93$lowerBound === void 0 ? false : _ref93$lowerBound;
19650
19683
  var content = virtualNode.attr('content') || '';
19651
19684
  if (!content) {
19652
19685
  return true;
@@ -19721,8 +19754,8 @@
19721
19754
  });
19722
19755
  return true;
19723
19756
  }
19724
- this.relatedNodes(closeNeighbors.map(function(_ref93) {
19725
- var actualNode = _ref93.actualNode;
19757
+ this.relatedNodes(closeNeighbors.map(function(_ref94) {
19758
+ var actualNode = _ref94.actualNode;
19726
19759
  return actualNode;
19727
19760
  }));
19728
19761
  if (!closeNeighbors.some(_isInTabOrder)) {
@@ -19827,8 +19860,8 @@
19827
19860
  if (obscuredNodes.length === 0) {
19828
19861
  return null;
19829
19862
  }
19830
- var obscuringRects = obscuredNodes.map(function(_ref94) {
19831
- var rect = _ref94.boundingClientRect;
19863
+ var obscuringRects = obscuredNodes.map(function(_ref95) {
19864
+ var rect = _ref95.boundingClientRect;
19832
19865
  return rect;
19833
19866
  });
19834
19867
  var unobscuredRects = _splitRects(nodeRect, obscuringRects);
@@ -19868,13 +19901,13 @@
19868
19901
  function isDescendantNotInTabOrder(vAncestor, vNode) {
19869
19902
  return vAncestor.actualNode.contains(vNode.actualNode) && !_isInTabOrder(vNode);
19870
19903
  }
19871
- function rectHasMinimumSize(minSize, _ref95) {
19872
- var width = _ref95.width, height = _ref95.height;
19904
+ function rectHasMinimumSize(minSize, _ref96) {
19905
+ var width = _ref96.width, height = _ref96.height;
19873
19906
  return width + roundingMargin2 >= minSize && height + roundingMargin2 >= minSize;
19874
19907
  }
19875
19908
  function mapActualNodes(vNodes) {
19876
- return vNodes.map(function(_ref96) {
19877
- var actualNode = _ref96.actualNode;
19909
+ return vNodes.map(function(_ref97) {
19910
+ var actualNode = _ref97.actualNode;
19878
19911
  return actualNode;
19879
19912
  });
19880
19913
  }
@@ -19900,14 +19933,14 @@
19900
19933
  }
19901
19934
  function getHeadingOrder(results) {
19902
19935
  results = _toConsumableArray(results);
19903
- results.sort(function(_ref97, _ref98) {
19904
- var nodeA = _ref97.node;
19905
- var nodeB = _ref98.node;
19936
+ results.sort(function(_ref98, _ref99) {
19937
+ var nodeA = _ref98.node;
19938
+ var nodeB = _ref99.node;
19906
19939
  return nodeA.ancestry.length - nodeB.ancestry.length;
19907
19940
  });
19908
19941
  var headingOrder = results.reduce(mergeHeadingOrder, []);
19909
- return headingOrder.filter(function(_ref99) {
19910
- var level = _ref99.level;
19942
+ return headingOrder.filter(function(_ref100) {
19943
+ var level = _ref100.level;
19911
19944
  return level !== -1;
19912
19945
  });
19913
19946
  }
@@ -19958,7 +19991,7 @@
19958
19991
  var headingRole = role && role.includes('heading');
19959
19992
  var ariaHeadingLevel = vNode.attr('aria-level');
19960
19993
  var ariaLevel = parseInt(ariaHeadingLevel, 10);
19961
- var _ref100 = vNode.props.nodeName.match(/h(\d)/) || [], _ref101 = _slicedToArray(_ref100, 2), headingLevel = _ref101[1];
19994
+ var _ref101 = vNode.props.nodeName.match(/h(\d)/) || [], _ref102 = _slicedToArray(_ref101, 2), headingLevel = _ref102[1];
19962
19995
  if (!headingRole) {
19963
19996
  return -1;
19964
19997
  }
@@ -20022,8 +20055,8 @@
20022
20055
  if (results.length < 2) {
20023
20056
  return results;
20024
20057
  }
20025
- var incompleteResults = results.filter(function(_ref102) {
20026
- var result = _ref102.result;
20058
+ var incompleteResults = results.filter(function(_ref103) {
20059
+ var result = _ref103.result;
20027
20060
  return result !== void 0;
20028
20061
  });
20029
20062
  var uniqueResults = [];
@@ -20035,12 +20068,12 @@
20035
20068
  if (nameMap[name]) {
20036
20069
  return 'continue';
20037
20070
  }
20038
- var sameNameResults = incompleteResults.filter(function(_ref103, resultNum) {
20039
- var data2 = _ref103.data;
20071
+ var sameNameResults = incompleteResults.filter(function(_ref104, resultNum) {
20072
+ var data2 = _ref104.data;
20040
20073
  return data2.name === name && resultNum !== index;
20041
20074
  });
20042
- var isSameUrl = sameNameResults.every(function(_ref104) {
20043
- var data2 = _ref104.data;
20075
+ var isSameUrl = sameNameResults.every(function(_ref105) {
20076
+ var data2 = _ref105.data;
20044
20077
  return isIdenticalObject(data2.urlProps, urlProps);
20045
20078
  });
20046
20079
  if (sameNameResults.length && !isSameUrl) {
@@ -20459,7 +20492,7 @@
20459
20492
  var separatorRegex = /[;,\s]/;
20460
20493
  var validRedirectNumRegex = /^[0-9.]+$/;
20461
20494
  function metaRefreshEvaluate(node, options, virtualNode) {
20462
- var _ref105 = options || {}, minDelay = _ref105.minDelay, maxDelay = _ref105.maxDelay;
20495
+ var _ref106 = options || {}, minDelay = _ref106.minDelay, maxDelay = _ref106.maxDelay;
20463
20496
  var content = (virtualNode.attr('content') || '').trim();
20464
20497
  var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0];
20465
20498
  if (!redirectStr.match(validRedirectNumRegex)) {
@@ -20631,8 +20664,8 @@
20631
20664
  } else if (node !== document.body && has_content_default(node, true)) {
20632
20665
  return [ virtualNode ];
20633
20666
  } else {
20634
- return virtualNode.children.filter(function(_ref106) {
20635
- var actualNode = _ref106.actualNode;
20667
+ return virtualNode.children.filter(function(_ref107) {
20668
+ var actualNode = _ref107.actualNode;
20636
20669
  return actualNode.nodeType === 1;
20637
20670
  }).map(function(vNode) {
20638
20671
  return findRegionlessElms(vNode, options);
@@ -20785,8 +20818,8 @@
20785
20818
  }
20786
20819
  return false;
20787
20820
  }
20788
- function getNumberValue(domNode, _ref107) {
20789
- var cssProperty = _ref107.cssProperty, absoluteValues = _ref107.absoluteValues, normalValue = _ref107.normalValue;
20821
+ function getNumberValue(domNode, _ref108) {
20822
+ var cssProperty = _ref108.cssProperty, absoluteValues = _ref108.absoluteValues, normalValue = _ref108.normalValue;
20790
20823
  var computedStyle = window.getComputedStyle(domNode);
20791
20824
  var cssPropValue = computedStyle.getPropertyValue(cssProperty);
20792
20825
  if (cssPropValue === 'normal') {
@@ -20863,8 +20896,8 @@
20863
20896
  if (!virtualNode.children) {
20864
20897
  return void 0;
20865
20898
  }
20866
- var titleNode = virtualNode.children.find(function(_ref108) {
20867
- var props = _ref108.props;
20899
+ var titleNode = virtualNode.children.find(function(_ref109) {
20900
+ var props = _ref109.props;
20868
20901
  return props.nodeName === 'title';
20869
20902
  });
20870
20903
  if (!titleNode) {
@@ -21451,7 +21484,7 @@
21451
21484
  if (!role || [ 'none', 'presentation' ].includes(role)) {
21452
21485
  return true;
21453
21486
  }
21454
- var _ref109 = aria_roles_default[role] || {}, accessibleNameRequired = _ref109.accessibleNameRequired;
21487
+ var _ref110 = aria_roles_default[role] || {}, accessibleNameRequired = _ref110.accessibleNameRequired;
21455
21488
  if (accessibleNameRequired || _isFocusable(virtualNode)) {
21456
21489
  return true;
21457
21490
  }
@@ -22778,8 +22811,8 @@
22778
22811
  });
22779
22812
  };
22780
22813
  }
22781
- function getHelpUrl(_ref110, ruleId, version) {
22782
- var brand = _ref110.brand, application = _ref110.application, lang = _ref110.lang;
22814
+ function getHelpUrl(_ref111, ruleId, version) {
22815
+ var brand = _ref111.brand, application = _ref111.application, lang = _ref111.lang;
22783
22816
  return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
22784
22817
  }
22785
22818
  var audit_default = Audit;
@@ -22995,9 +23028,9 @@
22995
23028
  toolOptions: options
22996
23029
  });
22997
23030
  }
22998
- function normalizeRunParams(_ref111) {
22999
- var _ref113, _options$reporter, _axe$_audit;
23000
- var _ref112 = _slicedToArray(_ref111, 3), context = _ref112[0], options = _ref112[1], callback = _ref112[2];
23031
+ function normalizeRunParams(_ref112) {
23032
+ var _ref114, _options$reporter, _axe$_audit;
23033
+ var _ref113 = _slicedToArray(_ref112, 3), context = _ref113[0], options = _ref113[1], callback = _ref113[2];
23001
23034
  var typeErr = new TypeError('axe.run arguments are invalid');
23002
23035
  if (!isContextSpec(context)) {
23003
23036
  if (callback !== void 0) {
@@ -23018,7 +23051,7 @@
23018
23051
  throw typeErr;
23019
23052
  }
23020
23053
  options = clone_default(options);
23021
- options.reporter = (_ref113 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit = axe._audit) === null || _axe$_audit === void 0 ? void 0 : _axe$_audit.reporter) !== null && _ref113 !== void 0 ? _ref113 : 'v1';
23054
+ options.reporter = (_ref114 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit = axe._audit) === null || _axe$_audit === void 0 ? void 0 : _axe$_audit.reporter) !== null && _ref114 !== void 0 ? _ref114 : 'v1';
23022
23055
  return {
23023
23056
  context: context,
23024
23057
  options: options,
@@ -23123,14 +23156,14 @@
23123
23156
  return new Promise(function(res, rej) {
23124
23157
  axe._audit.run(contextObj, options, res, rej);
23125
23158
  }).then(function(results) {
23126
- results = results.map(function(_ref114) {
23127
- var nodes = _ref114.nodes, result = _objectWithoutProperties(_ref114, _excluded8);
23159
+ results = results.map(function(_ref115) {
23160
+ var nodes = _ref115.nodes, result = _objectWithoutProperties(_ref115, _excluded8);
23128
23161
  return _extends({
23129
23162
  nodes: nodes.map(serializeNode)
23130
23163
  }, result);
23131
23164
  });
23132
- var frames = contextObj.frames.map(function(_ref115) {
23133
- var node = _ref115.node;
23165
+ var frames = contextObj.frames.map(function(_ref116) {
23166
+ var node = _ref116.node;
23134
23167
  return new dq_element_default(node, options).toJSON();
23135
23168
  });
23136
23169
  var environmentData;
@@ -23150,13 +23183,13 @@
23150
23183
  return Promise.reject(err2);
23151
23184
  });
23152
23185
  }
23153
- function serializeNode(_ref116) {
23154
- var node = _ref116.node, nodeResult = _objectWithoutProperties(_ref116, _excluded9);
23186
+ function serializeNode(_ref117) {
23187
+ var node = _ref117.node, nodeResult = _objectWithoutProperties(_ref117, _excluded9);
23155
23188
  nodeResult.node = node.toJSON();
23156
23189
  for (var _i33 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i33 < _arr2.length; _i33++) {
23157
23190
  var type = _arr2[_i33];
23158
- nodeResult[type] = nodeResult[type].map(function(_ref117) {
23159
- var relatedNodes = _ref117.relatedNodes, checkResult = _objectWithoutProperties(_ref117, _excluded10);
23191
+ nodeResult[type] = nodeResult[type].map(function(_ref118) {
23192
+ var relatedNodes = _ref118.relatedNodes, checkResult = _objectWithoutProperties(_ref118, _excluded10);
23160
23193
  return _extends({}, checkResult, {
23161
23194
  relatedNodes: relatedNodes.map(function(node2) {
23162
23195
  return node2.toJSON();
@@ -23167,14 +23200,14 @@
23167
23200
  return nodeResult;
23168
23201
  }
23169
23202
  function finishRun(partialResults) {
23170
- var _ref119, _options$reporter2, _axe$_audit2;
23203
+ var _ref120, _options$reporter2, _axe$_audit2;
23171
23204
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
23172
23205
  options = clone_default(options);
23173
- var _ref118 = partialResults.find(function(r) {
23206
+ var _ref119 = partialResults.find(function(r) {
23174
23207
  return r.environmentData;
23175
- }) || {}, environmentData = _ref118.environmentData;
23208
+ }) || {}, environmentData = _ref119.environmentData;
23176
23209
  axe._audit.normalizeOptions(options);
23177
- options.reporter = (_ref119 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref119 !== void 0 ? _ref119 : 'v1';
23210
+ options.reporter = (_ref120 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref120 !== void 0 ? _ref120 : 'v1';
23178
23211
  setFrameSpec(partialResults);
23179
23212
  var results = merge_results_default(partialResults);
23180
23213
  results = axe._audit.after(results, options);
@@ -23204,8 +23237,8 @@
23204
23237
  _iterator12.f();
23205
23238
  }
23206
23239
  }
23207
- function getMergedFrameSpecs(_ref120) {
23208
- var childFrameSpecs = _ref120.frames, parentFrameSpec = _ref120.frameSpec;
23240
+ function getMergedFrameSpecs(_ref121) {
23241
+ var childFrameSpecs = _ref121.frames, parentFrameSpec = _ref121.frameSpec;
23209
23242
  if (!parentFrameSpec) {
23210
23243
  return childFrameSpecs;
23211
23244
  }
@@ -23268,9 +23301,9 @@
23268
23301
  for (var _i34 = 0, _types = types; _i34 < _types.length; _i34++) {
23269
23302
  var type = _types[_i34];
23270
23303
  if (transformedResult[type] && Array.isArray(transformedResult[type])) {
23271
- transformedResult[type] = transformedResult[type].map(function(_ref121) {
23304
+ transformedResult[type] = transformedResult[type].map(function(_ref122) {
23272
23305
  var _node;
23273
- var node = _ref121.node, typeResult = _objectWithoutProperties(_ref121, _excluded13);
23306
+ var node = _ref122.node, typeResult = _objectWithoutProperties(_ref122, _excluded13);
23274
23307
  node = typeof ((_node = node) === null || _node === void 0 ? void 0 : _node.toJSON) === 'function' ? node.toJSON() : node;
23275
23308
  return _extends({
23276
23309
  node: node
@@ -25704,7 +25737,8 @@
25704
25737
  all: [],
25705
25738
  any: [ {
25706
25739
  options: {
25707
- requiredContrastRatio: 3
25740
+ requiredContrastRatio: 3,
25741
+ allowSameColor: true
25708
25742
  },
25709
25743
  id: 'link-in-text-block'
25710
25744
  }, 'link-in-text-block-style' ],
@@ -25940,6 +25974,7 @@
25940
25974
  none: []
25941
25975
  }, {
25942
25976
  id: 'scrollable-region-focusable',
25977
+ selector: '*:not(select,textarea)',
25943
25978
  matches: 'scrollable-region-focusable-matches',
25944
25979
  tags: [ 'cat.keyboard', 'wcag2a', 'wcag211' ],
25945
25980
  actIds: [ '0ssw9k' ],
@@ -26227,7 +26262,8 @@
26227
26262
  id: 'link-in-text-block',
26228
26263
  evaluate: 'link-in-text-block-evaluate',
26229
26264
  options: {
26230
- requiredContrastRatio: 3
26265
+ requiredContrastRatio: 3,
26266
+ allowSameColor: true
26231
26267
  }
26232
26268
  }, {
26233
26269
  id: 'autocomplete-appropriate',