axe-core 4.4.3-canary.82b97f0 → 4.4.3-canary.83ffb3d

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/README.md CHANGED
@@ -103,7 +103,7 @@ or equivalently:
103
103
 
104
104
  `npm run build -- --lang=nl`
105
105
 
106
- This will create a new build for axe, called `axe.<lang>.js` and `axe.<lang>.min.js`. If you want to build localized versions, simply pass in `--all-lang` instead. If you want to build multiple localized versions (but not all of them), you can pass in a comma-separated list of langages to the `--lang` flag, like `--lang=nl,ja`.
106
+ This will create a new build for axe, called `axe.<lang>.js` and `axe.<lang>.min.js`. If you want to build localized versions, simply pass in `--all-lang` instead. If you want to build multiple localized versions (but not all of them), you can pass in a comma-separated list of languages to the `--lang` flag, like `--lang=nl,ja`.
107
107
 
108
108
  To create a new translation for axe, start by running `grunt translate --lang=<langcode>`. This will create a json file fin the `./locales` directory, with the default English text in it for you to translate. Alternatively, you could copy `./locales/_template.json`. We welcome any localization for axe-core. For details on how to contribute, see the Contributing section below. For details on the message syntax, see [Check Message Template](/docs/check-message-template.md).
109
109
 
package/axe.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! axe v4.4.3-canary.82b97f0
1
+ /*! axe v4.4.3-canary.83ffb3d
2
2
  * Copyright (c) 2022 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.4.3-canary.82b97f0';
25
+ axe.version = '4.4.3-canary.83ffb3d';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -7281,6 +7281,9 @@
7281
7281
  isModalOpen: function isModalOpen() {
7282
7282
  return is_modal_open_default;
7283
7283
  },
7284
+ isMultiline: function isMultiline() {
7285
+ return _isMultiline;
7286
+ },
7284
7287
  isNativelyFocusable: function isNativelyFocusable() {
7285
7288
  return is_natively_focusable_default;
7286
7289
  },
@@ -8395,6 +8398,36 @@
8395
8398
  return void 0;
8396
8399
  }
8397
8400
  var is_modal_open_default = isModalOpen;
8401
+ function _isMultiline(domNode) {
8402
+ var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
8403
+ var range = domNode.ownerDocument.createRange();
8404
+ range.setStart(domNode, 0);
8405
+ range.setEnd(domNode, domNode.childNodes.length);
8406
+ var lastLineEnd = 0;
8407
+ var lineCount = 0;
8408
+ var _iterator2 = _createForOfIteratorHelper(range.getClientRects()), _step2;
8409
+ try {
8410
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
8411
+ var rect = _step2.value;
8412
+ if (rect.height <= margin) {
8413
+ continue;
8414
+ }
8415
+ if (lastLineEnd > rect.top + margin) {
8416
+ lastLineEnd = Math.max(lastLineEnd, rect.bottom);
8417
+ } else if (lineCount === 0) {
8418
+ lastLineEnd = rect.bottom;
8419
+ lineCount++;
8420
+ } else {
8421
+ return true;
8422
+ }
8423
+ }
8424
+ } catch (err) {
8425
+ _iterator2.e(err);
8426
+ } finally {
8427
+ _iterator2.f();
8428
+ }
8429
+ return false;
8430
+ }
8398
8431
  function isNode(element) {
8399
8432
  return element instanceof window.Node;
8400
8433
  }
@@ -16340,6 +16373,9 @@
16340
16373
  return true;
16341
16374
  }
16342
16375
  var aria_allowed_role_evaluate_default = ariaAllowedRoleEvaluate;
16376
+ function ariaBusyEvaluate(node, options, virtualNode) {
16377
+ return virtualNode.attr('aria-busy') === 'true';
16378
+ }
16343
16379
  function ariaErrormessageEvaluate(node, options, virtualNode) {
16344
16380
  options = Array.isArray(options) ? options : [];
16345
16381
  var attr = virtualNode.attr('aria-errormessage');
@@ -16617,7 +16653,8 @@
16617
16653
  var aria_required_parent_evaluate_default = ariaRequiredParentEvaluate;
16618
16654
  function ariaRoledescriptionEvaluate(node) {
16619
16655
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
16620
- var role = get_role_default(node);
16656
+ var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
16657
+ var role = get_role_default(virtualNode);
16621
16658
  var supportedRoles = options.supportedRoles || [];
16622
16659
  if (supportedRoles.includes(role)) {
16623
16660
  return true;
@@ -17677,7 +17714,6 @@
17677
17714
  return void 0;
17678
17715
  }
17679
17716
  }
17680
- var has_text_content_evaluate_default = hasTextContentEvaluate;
17681
17717
  function matchesDefinitionEvaluate(_, options, virtualNode) {
17682
17718
  return matches_default3(virtualNode, options.matcher);
17683
17719
  }
@@ -19328,19 +19364,19 @@
19328
19364
  return;
19329
19365
  }
19330
19366
  var frameAncestry = r.node.ancestry.slice(0, -1);
19331
- var _iterator2 = _createForOfIteratorHelper(iframeResults), _step2;
19367
+ var _iterator3 = _createForOfIteratorHelper(iframeResults), _step3;
19332
19368
  try {
19333
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
19334
- var iframeResult = _step2.value;
19369
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
19370
+ var iframeResult = _step3.value;
19335
19371
  if (match_ancestry_default(frameAncestry, iframeResult.node.ancestry)) {
19336
19372
  r.result = iframeResult.result;
19337
19373
  break;
19338
19374
  }
19339
19375
  }
19340
19376
  } catch (err) {
19341
- _iterator2.e(err);
19377
+ _iterator3.e(err);
19342
19378
  } finally {
19343
- _iterator2.f();
19379
+ _iterator3.f();
19344
19380
  }
19345
19381
  });
19346
19382
  iframeResults.forEach(function(r) {
@@ -19508,6 +19544,59 @@
19508
19544
  return virtualNode.hasAttr('alt');
19509
19545
  }
19510
19546
  var has_alt_evaluate_default = hasAltEvaluate;
19547
+ function inlineStyleProperty(node, options) {
19548
+ var cssProperty = options.cssProperty, absoluteValues = options.absoluteValues, minValue = options.minValue, maxValue = options.maxValue, _options$normalValue = options.normalValue, normalValue = _options$normalValue === void 0 ? 0 : _options$normalValue, noImportant = options.noImportant, multiLineOnly = options.multiLineOnly;
19549
+ if (!noImportant && node.style.getPropertyPriority(cssProperty) !== 'important' || multiLineOnly && !_isMultiline(node)) {
19550
+ return true;
19551
+ }
19552
+ var data2 = {};
19553
+ if (typeof minValue === 'number') {
19554
+ data2.minValue = minValue;
19555
+ }
19556
+ if (typeof maxValue === 'number') {
19557
+ data2.maxValue = maxValue;
19558
+ }
19559
+ var declaredPropValue = node.style.getPropertyValue(cssProperty);
19560
+ if ([ 'inherit', 'unset', 'revert', 'revert-layer' ].includes(declaredPropValue)) {
19561
+ this.data(_extends({
19562
+ value: declaredPropValue
19563
+ }, data2));
19564
+ return true;
19565
+ }
19566
+ var value = getNumberValue(node, {
19567
+ absoluteValues: absoluteValues,
19568
+ cssProperty: cssProperty,
19569
+ normalValue: normalValue
19570
+ });
19571
+ this.data(_extends({
19572
+ value: value
19573
+ }, data2));
19574
+ if (typeof value !== 'number') {
19575
+ return void 0;
19576
+ }
19577
+ if ((typeof minValue !== 'number' || value >= minValue) && (typeof maxValue !== 'number' || value <= maxValue)) {
19578
+ return true;
19579
+ }
19580
+ return false;
19581
+ }
19582
+ function getNumberValue(domNode, _ref85) {
19583
+ var cssProperty = _ref85.cssProperty, absoluteValues = _ref85.absoluteValues, normalValue = _ref85.normalValue;
19584
+ var computedStyle = window.getComputedStyle(domNode);
19585
+ var cssPropValue = computedStyle.getPropertyValue(cssProperty);
19586
+ if (cssPropValue === 'normal') {
19587
+ return normalValue;
19588
+ }
19589
+ var parsedValue = parseFloat(cssPropValue);
19590
+ if (absoluteValues) {
19591
+ return parsedValue;
19592
+ }
19593
+ var fontSize = parseFloat(computedStyle.getPropertyValue('font-size'));
19594
+ var value = Math.round(parsedValue / fontSize * 100) / 100;
19595
+ if (isNaN(value)) {
19596
+ return cssPropValue;
19597
+ }
19598
+ return value;
19599
+ }
19511
19600
  function isOnScreenEvaluate(node) {
19512
19601
  return is_visible_default(node, false) && !is_offscreen_default(node);
19513
19602
  }
@@ -19562,8 +19651,8 @@
19562
19651
  if (!virtualNode.children) {
19563
19652
  return void 0;
19564
19653
  }
19565
- var titleNode = virtualNode.children.find(function(_ref85) {
19566
- var props = _ref85.props;
19654
+ var titleNode = virtualNode.children.find(function(_ref86) {
19655
+ var props = _ref86.props;
19567
19656
  return props.nodeName === 'title';
19568
19657
  });
19569
19658
  if (!titleNode) {
@@ -19981,18 +20070,9 @@
19981
20070
  }) !== null;
19982
20071
  }
19983
20072
  var has_implicit_chromium_role_matches_default = hasImplicitChromiumRoleMatches;
19984
- function headingMatches(node) {
19985
- var explicitRoles;
19986
- if (node.hasAttribute('role')) {
19987
- explicitRoles = node.getAttribute('role').split(/\s+/i).filter(axe.commons.aria.isValidRole);
19988
- }
19989
- if (explicitRoles && explicitRoles.length > 0) {
19990
- return explicitRoles.includes('heading');
19991
- } else {
19992
- return axe.commons.aria.implicitRole(node) === 'heading';
19993
- }
20073
+ function headingMatches(node, virtualNode) {
20074
+ return get_role_default(virtualNode) === 'heading';
19994
20075
  }
19995
- var heading_matches_default = headingMatches;
19996
20076
  function svgNamespaceMatches(node, virtualNode) {
19997
20077
  try {
19998
20078
  var nodeName2 = virtualNode.props.nodeName;
@@ -20025,6 +20105,9 @@
20025
20105
  return inserted_into_focus_order_default(node);
20026
20106
  }
20027
20107
  var inserted_into_focus_order_matches_default = insertedIntoFocusOrderMatches;
20108
+ function hasVisibleTextMatches(node) {
20109
+ return is_visible_default(node, false);
20110
+ }
20028
20111
  function labelContentNameMismatchMatches(node, virtualNode) {
20029
20112
  var role = get_role_default(node);
20030
20113
  if (!role) {
@@ -20138,7 +20221,7 @@
20138
20221
  if (!role || [ 'none', 'presentation' ].includes(role)) {
20139
20222
  return true;
20140
20223
  }
20141
- var _ref86 = aria_roles_default[role] || {}, accessibleNameRequired = _ref86.accessibleNameRequired;
20224
+ var _ref87 = aria_roles_default[role] || {}, accessibleNameRequired = _ref87.accessibleNameRequired;
20142
20225
  if (accessibleNameRequired || _isFocusable(virtualNode)) {
20143
20226
  return true;
20144
20227
  }
@@ -20243,6 +20326,7 @@
20243
20326
  'aria-allowed-attr-matches': aria_allowed_attr_matches_default,
20244
20327
  'aria-allowed-role-evaluate': aria_allowed_role_evaluate_default,
20245
20328
  'aria-allowed-role-matches': aria_allowed_role_matches_default,
20329
+ 'aria-busy-evaluate': ariaBusyEvaluate,
20246
20330
  'aria-errormessage-evaluate': aria_errormessage_evaluate_default,
20247
20331
  'aria-has-attr-matches': aria_has_attr_matches_default,
20248
20332
  'aria-hidden-body-evaluate': aria_hidden_body_evaluate_default,
@@ -20302,9 +20386,9 @@
20302
20386
  'has-global-aria-attribute-evaluate': has_global_aria_attribute_evaluate_default,
20303
20387
  'has-implicit-chromium-role-matches': has_implicit_chromium_role_matches_default,
20304
20388
  'has-lang-evaluate': has_lang_evaluate_default,
20305
- 'has-text-content-evaluate': has_text_content_evaluate_default,
20389
+ 'has-text-content-evaluate': hasTextContentEvaluate,
20306
20390
  'has-widget-role-evaluate': has_widget_role_evaluate_default,
20307
- 'heading-matches': heading_matches_default,
20391
+ 'heading-matches': headingMatches,
20308
20392
  'heading-order-after': headingOrderAfter,
20309
20393
  'heading-order-evaluate': heading_order_evaluate_default,
20310
20394
  'help-same-as-label-evaluate': help_same_as_label_evaluate_default,
@@ -20316,12 +20400,14 @@
20316
20400
  'identical-links-same-purpose-evaluate': identical_links_same_purpose_evaluate_default,
20317
20401
  'identical-links-same-purpose-matches': identical_links_same_purpose_matches_default,
20318
20402
  'implicit-evaluate': implicit_evaluate_default,
20403
+ 'inline-style-property-evaluate': inlineStyleProperty,
20319
20404
  'inserted-into-focus-order-matches': inserted_into_focus_order_matches_default,
20320
20405
  'internal-link-present-evaluate': internal_link_present_evaluate_default,
20321
20406
  'invalidrole-evaluate': invalidrole_evaluate_default,
20322
20407
  'is-element-focusable-evaluate': is_element_focusable_evaluate_default,
20323
20408
  'is-initiator-matches': is_initiator_matches_default,
20324
20409
  'is-on-screen-evaluate': is_on_screen_evaluate_default,
20410
+ 'is-visible-matches': hasVisibleTextMatches,
20325
20411
  'label-content-name-mismatch-evaluate': label_content_name_mismatch_evaluate_default,
20326
20412
  'label-content-name-mismatch-matches': label_content_name_mismatch_matches_default,
20327
20413
  'label-matches': label_matches_default,
@@ -21073,10 +21159,10 @@
21073
21159
  value: function setAllowedOrigins(allowedOrigins) {
21074
21160
  var defaultOrigin = getDefaultOrigin();
21075
21161
  this.allowedOrigins = [];
21076
- var _iterator3 = _createForOfIteratorHelper(allowedOrigins), _step3;
21162
+ var _iterator4 = _createForOfIteratorHelper(allowedOrigins), _step4;
21077
21163
  try {
21078
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
21079
- var origin = _step3.value;
21164
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) {
21165
+ var origin = _step4.value;
21080
21166
  if (origin === constants_default.allOrigins) {
21081
21167
  this.allowedOrigins = [ '*' ];
21082
21168
  return;
@@ -21087,9 +21173,9 @@
21087
21173
  }
21088
21174
  }
21089
21175
  } catch (err) {
21090
- _iterator3.e(err);
21176
+ _iterator4.e(err);
21091
21177
  } finally {
21092
- _iterator3.f();
21178
+ _iterator4.f();
21093
21179
  }
21094
21180
  }
21095
21181
  }, {
@@ -21390,8 +21476,8 @@
21390
21476
  });
21391
21477
  };
21392
21478
  }
21393
- function getHelpUrl(_ref87, ruleId, version) {
21394
- var brand = _ref87.brand, application = _ref87.application, lang = _ref87.lang;
21479
+ function getHelpUrl(_ref88, ruleId, version) {
21480
+ var brand = _ref88.brand, application = _ref88.application, lang = _ref88.lang;
21395
21481
  return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
21396
21482
  }
21397
21483
  var audit_default = Audit;
@@ -21806,9 +21892,9 @@
21806
21892
  });
21807
21893
  }
21808
21894
  var run_virtual_rule_default = runVirtualRule;
21809
- function normalizeRunParams(_ref88) {
21810
- var _ref90, _options$reporter, _axe$_audit;
21811
- var _ref89 = _slicedToArray(_ref88, 3), context = _ref89[0], options = _ref89[1], callback = _ref89[2];
21895
+ function normalizeRunParams(_ref89) {
21896
+ var _ref91, _options$reporter, _axe$_audit;
21897
+ var _ref90 = _slicedToArray(_ref89, 3), context = _ref90[0], options = _ref90[1], callback = _ref90[2];
21812
21898
  var typeErr = new TypeError('axe.run arguments are invalid');
21813
21899
  if (!isContext(context)) {
21814
21900
  if (callback !== void 0) {
@@ -21829,7 +21915,7 @@
21829
21915
  throw typeErr;
21830
21916
  }
21831
21917
  options = clone_default(options);
21832
- options.reporter = (_ref90 = (_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 && _ref90 !== void 0 ? _ref90 : 'v1';
21918
+ options.reporter = (_ref91 = (_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 && _ref91 !== void 0 ? _ref91 : 'v1';
21833
21919
  return {
21834
21920
  context: context,
21835
21921
  options: options,
@@ -21954,14 +22040,14 @@
21954
22040
  return new Promise(function(res, rej) {
21955
22041
  axe._audit.run(contextObj, options, res, rej);
21956
22042
  }).then(function(results) {
21957
- results = results.map(function(_ref91) {
21958
- var nodes = _ref91.nodes, result = _objectWithoutProperties(_ref91, _excluded8);
22043
+ results = results.map(function(_ref92) {
22044
+ var nodes = _ref92.nodes, result = _objectWithoutProperties(_ref92, _excluded8);
21959
22045
  return _extends({
21960
22046
  nodes: nodes.map(serializeNode)
21961
22047
  }, result);
21962
22048
  });
21963
- var frames = contextObj.frames.map(function(_ref92) {
21964
- var node = _ref92.node;
22049
+ var frames = contextObj.frames.map(function(_ref93) {
22050
+ var node = _ref93.node;
21965
22051
  return new dq_element_default(node, options).toJSON();
21966
22052
  });
21967
22053
  var environmentData;
@@ -21981,13 +22067,13 @@
21981
22067
  return Promise.reject(err2);
21982
22068
  });
21983
22069
  }
21984
- function serializeNode(_ref93) {
21985
- var node = _ref93.node, nodeResult = _objectWithoutProperties(_ref93, _excluded9);
22070
+ function serializeNode(_ref94) {
22071
+ var node = _ref94.node, nodeResult = _objectWithoutProperties(_ref94, _excluded9);
21986
22072
  nodeResult.node = node.toJSON();
21987
22073
  for (var _i32 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i32 < _arr2.length; _i32++) {
21988
22074
  var type = _arr2[_i32];
21989
- nodeResult[type] = nodeResult[type].map(function(_ref94) {
21990
- var relatedNodes = _ref94.relatedNodes, checkResult = _objectWithoutProperties(_ref94, _excluded10);
22075
+ nodeResult[type] = nodeResult[type].map(function(_ref95) {
22076
+ var relatedNodes = _ref95.relatedNodes, checkResult = _objectWithoutProperties(_ref95, _excluded10);
21991
22077
  return _extends({}, checkResult, {
21992
22078
  relatedNodes: relatedNodes.map(function(node2) {
21993
22079
  return node2.toJSON();
@@ -21998,14 +22084,14 @@
21998
22084
  return nodeResult;
21999
22085
  }
22000
22086
  function finishRun(partialResults) {
22001
- var _ref96, _options$reporter2, _axe$_audit2;
22087
+ var _ref97, _options$reporter2, _axe$_audit2;
22002
22088
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
22003
22089
  options = clone_default(options);
22004
- var _ref95 = partialResults.find(function(r) {
22090
+ var _ref96 = partialResults.find(function(r) {
22005
22091
  return r.environmentData;
22006
- }) || {}, environmentData = _ref95.environmentData;
22092
+ }) || {}, environmentData = _ref96.environmentData;
22007
22093
  axe._audit.normalizeOptions(options);
22008
- options.reporter = (_ref96 = (_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 && _ref96 !== void 0 ? _ref96 : 'v1';
22094
+ options.reporter = (_ref97 = (_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 && _ref97 !== void 0 ? _ref97 : 'v1';
22009
22095
  setFrameSpec(partialResults);
22010
22096
  var results = merge_results_default(partialResults);
22011
22097
  results = axe._audit.after(results, options);
@@ -22017,10 +22103,10 @@
22017
22103
  }
22018
22104
  function setFrameSpec(partialResults) {
22019
22105
  var frameStack = [];
22020
- var _iterator4 = _createForOfIteratorHelper(partialResults), _step4;
22106
+ var _iterator5 = _createForOfIteratorHelper(partialResults), _step5;
22021
22107
  try {
22022
- for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) {
22023
- var partialResult = _step4.value;
22108
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done; ) {
22109
+ var partialResult = _step5.value;
22024
22110
  var frameSpec = frameStack.shift();
22025
22111
  if (!partialResult) {
22026
22112
  continue;
@@ -22030,13 +22116,13 @@
22030
22116
  frameStack.unshift.apply(frameStack, _toConsumableArray(frameSpecs));
22031
22117
  }
22032
22118
  } catch (err) {
22033
- _iterator4.e(err);
22119
+ _iterator5.e(err);
22034
22120
  } finally {
22035
- _iterator4.f();
22121
+ _iterator5.f();
22036
22122
  }
22037
22123
  }
22038
- function getMergedFrameSpecs(_ref97) {
22039
- var childFrameSpecs = _ref97.frames, parentFrameSpec = _ref97.frameSpec;
22124
+ function getMergedFrameSpecs(_ref98) {
22125
+ var childFrameSpecs = _ref98.frames, parentFrameSpec = _ref98.frameSpec;
22040
22126
  if (!parentFrameSpec) {
22041
22127
  return childFrameSpecs;
22042
22128
  }
@@ -22099,9 +22185,9 @@
22099
22185
  for (var _i33 = 0, _types = types; _i33 < _types.length; _i33++) {
22100
22186
  var type = _types[_i33];
22101
22187
  if (transformedResult[type] && Array.isArray(transformedResult[type])) {
22102
- transformedResult[type] = transformedResult[type].map(function(_ref98) {
22188
+ transformedResult[type] = transformedResult[type].map(function(_ref99) {
22103
22189
  var _node;
22104
- var node = _ref98.node, typeResult = _objectWithoutProperties(_ref98, _excluded13);
22190
+ var node = _ref99.node, typeResult = _objectWithoutProperties(_ref99, _excluded13);
22105
22191
  node = typeof ((_node = node) === null || _node === void 0 ? void 0 : _node.toJSON) === 'function' ? node.toJSON() : node;
22106
22192
  return _extends({
22107
22193
  node: node
@@ -22645,6 +22731,13 @@
22645
22731
  }
22646
22732
  }
22647
22733
  },
22734
+ 'aria-busy': {
22735
+ impact: 'serious',
22736
+ messages: {
22737
+ pass: 'Element has an aria-busy attribute',
22738
+ fail: 'Element has no aria-busy="true" attribute'
22739
+ }
22740
+ },
22648
22741
  'aria-errormessage': {
22649
22742
  impact: 'critical',
22650
22743
  messages: {
@@ -23388,6 +23481,27 @@
23388
23481
  incomplete: 'Unable to determine if element has children'
23389
23482
  }
23390
23483
  },
23484
+ 'important-letter-spacing': {
23485
+ impact: 'serious',
23486
+ messages: {
23487
+ pass: 'Letter-spacing in the style attribute is not set to !important, or meets the minimum',
23488
+ fail: 'letter-spacing in the style attribute must not use !important, or be at ${data.minValue}em (current ${data.value}em)'
23489
+ }
23490
+ },
23491
+ 'important-line-height': {
23492
+ impact: 'serious',
23493
+ messages: {
23494
+ pass: 'line-height in the style attribute is not set to !important, or meets the minimum',
23495
+ fail: 'line-height in the style attribute must not use !important, or be at ${data.minValue}em (current ${data.value}em)'
23496
+ }
23497
+ },
23498
+ 'important-word-spacing': {
23499
+ impact: 'serious',
23500
+ messages: {
23501
+ pass: 'word-spacing in the style attribute is not set to !important, or meets the minimum',
23502
+ fail: 'word-spacing in the style attribute must not use !important, or be at ${data.minValue}em (current ${data.value}em)'
23503
+ }
23504
+ },
23391
23505
  'is-on-screen': {
23392
23506
  impact: 'serious',
23393
23507
  messages: {
@@ -23740,7 +23854,7 @@
23740
23854
  reviewEmpty: [ 'doc-bibliography', 'doc-endnotes', 'grid', 'list', 'listbox', 'table', 'tablist', 'tree', 'treegrid', 'rowgroup' ]
23741
23855
  },
23742
23856
  id: 'aria-required-children'
23743
- } ],
23857
+ }, 'aria-busy' ],
23744
23858
  none: []
23745
23859
  }, {
23746
23860
  id: 'aria-required-parent',
@@ -23872,13 +23986,29 @@
23872
23986
  }, {
23873
23987
  id: 'avoid-inline-spacing',
23874
23988
  selector: '[style]',
23989
+ matches: 'is-visible-matches',
23875
23990
  tags: [ 'cat.structure', 'wcag21aa', 'wcag1412', 'ACT' ],
23876
23991
  actIds: [ '24afc2', '9e45ec', '78fd32' ],
23877
23992
  all: [ {
23878
23993
  options: {
23879
- cssProperties: [ 'line-height', 'letter-spacing', 'word-spacing' ]
23994
+ cssProperty: 'letter-spacing',
23995
+ minValue: .12
23880
23996
  },
23881
- id: 'avoid-inline-spacing'
23997
+ id: 'important-letter-spacing'
23998
+ }, {
23999
+ options: {
24000
+ cssProperty: 'word-spacing',
24001
+ minValue: .16
24002
+ },
24003
+ id: 'important-word-spacing'
24004
+ }, {
24005
+ options: {
24006
+ multiLineOnly: true,
24007
+ cssProperty: 'line-height',
24008
+ minValue: 1.5,
24009
+ normalValue: 1
24010
+ },
24011
+ id: 'important-line-height'
23882
24012
  } ],
23883
24013
  any: [],
23884
24014
  none: []
@@ -24519,7 +24649,8 @@
24519
24649
  excludeHidden: false,
24520
24650
  selector: 'audio[autoplay], video[autoplay]',
24521
24651
  matches: 'no-autoplay-audio-matches',
24522
- tags: [ 'cat.time-and-media', 'wcag2a', 'wcag142', 'experimental', 'ACT' ],
24652
+ reviewOnFail: true,
24653
+ tags: [ 'cat.time-and-media', 'wcag2a', 'wcag142', 'ACT' ],
24523
24654
  actIds: [ '80f0bf' ],
24524
24655
  preload: true,
24525
24656
  all: [ {
@@ -24765,6 +24896,9 @@
24765
24896
  allowImplicit: true,
24766
24897
  ignoredTags: []
24767
24898
  }
24899
+ }, {
24900
+ id: 'aria-busy',
24901
+ evaluate: 'aria-busy-evaluate'
24768
24902
  }, {
24769
24903
  id: 'aria-errormessage',
24770
24904
  evaluate: 'aria-errormessage-evaluate'
@@ -25185,6 +25319,29 @@
25185
25319
  }, {
25186
25320
  id: 'has-visible-text',
25187
25321
  evaluate: 'has-text-content-evaluate'
25322
+ }, {
25323
+ id: 'important-letter-spacing',
25324
+ evaluate: 'inline-style-property-evaluate',
25325
+ options: {
25326
+ cssProperty: 'letter-spacing',
25327
+ minValue: .12
25328
+ }
25329
+ }, {
25330
+ id: 'important-line-height',
25331
+ evaluate: 'inline-style-property-evaluate',
25332
+ options: {
25333
+ multiLineOnly: true,
25334
+ cssProperty: 'line-height',
25335
+ minValue: 1.5,
25336
+ normalValue: 1
25337
+ }
25338
+ }, {
25339
+ id: 'important-word-spacing',
25340
+ evaluate: 'inline-style-property-evaluate',
25341
+ options: {
25342
+ cssProperty: 'word-spacing',
25343
+ minValue: .16
25344
+ }
25188
25345
  }, {
25189
25346
  id: 'is-on-screen',
25190
25347
  evaluate: 'is-on-screen-evaluate'