From 27465ea2bb26cae653c9ac6c32336a105fae50ed Mon Sep 17 00:00:00 2001 From: Shunguo Date: Wed, 11 Oct 2023 13:26:28 -0500 Subject: [PATCH] update the code #1676 --- .../src/v4/rules/element_tabbable_unobscured.ts | 2 +- .../element_unobscured.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/accessibility-checker-engine/src/v4/rules/element_tabbable_unobscured.ts b/accessibility-checker-engine/src/v4/rules/element_tabbable_unobscured.ts index 44ee13dd2..a39d44040 100644 --- a/accessibility-checker-engine/src/v4/rules/element_tabbable_unobscured.ts +++ b/accessibility-checker-engine/src/v4/rules/element_tabbable_unobscured.ts @@ -91,7 +91,7 @@ export let element_tabbable_unobscured: Rule = { elems.forEach(elem => { /** * the nodes returned from querySelectorAll is in document order - * if z-index is not defined, then the node rendered next will overlay the node previously + * if two elements overlap and z-index are not defined, then the node rendered earlier will be overlaid by the node rendered later */ if (ruleContext.contains(elem)) { //the next node in elems will be after the target node (ruleContext). diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/element_tabbable_unobscured_ruleunit/element_unobscured.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/element_tabbable_unobscured_ruleunit/element_unobscured.html index 34a3f5fbb..4e626f5ae 100755 --- a/accessibility-checker-engine/test/v2/checker/accessibility/rules/element_tabbable_unobscured_ruleunit/element_unobscured.html +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/element_tabbable_unobscured_ruleunit/element_unobscured.html @@ -76,7 +76,7 @@

Fixed-Position Banner

- +
@@ -134,7 +134,7 @@

Footer Content

- +