From 1157e8ee5588b10aaccea139c09ba287fd858266 Mon Sep 17 00:00:00 2001 From: Shunguo Date: Thu, 19 Oct 2023 10:54:05 -0500 Subject: [PATCH] update rule and test cases #1674 --- .../v2/checker/accessibility/util/legacy.ts | 34 +++----- .../src/v4/rules/target_spacing_sufficient.ts | 27 +++--- .../block_element_inline.html | 16 +++- .../block_overlaid_hidden_default.html | 2 +- .../block_overlaid_hidden_zindex.html | 2 +- .../block_overlaid_visible_zindex.html | 2 +- .../element_inline.html | 76 ++++++++++++++--- .../element_list.html | 82 +++++++++++++++++++ .../element_target.html | 2 +- 9 files changed, 188 insertions(+), 55 deletions(-) create mode 100644 accessibility-checker-engine/test/v2/checker/accessibility/rules/target_spacing_sufficient_ruleunit/element_list.html diff --git a/accessibility-checker-engine/src/v2/checker/accessibility/util/legacy.ts b/accessibility-checker-engine/src/v2/checker/accessibility/util/legacy.ts index 7fe26ae23..2262fcc10 100644 --- a/accessibility-checker-engine/src/v2/checker/accessibility/util/legacy.ts +++ b/accessibility-checker-engine/src/v2/checker/accessibility/util/legacy.ts @@ -20,7 +20,7 @@ import { ARIAMapper } from "../../../aria/ARIAMapper"; import { DOMWalker } from "../../../dom/DOMWalker"; import { VisUtil } from "../../../dom/VisUtil"; import { FragmentUtil } from "./fragment"; -import { getDefinedStyles } from "../../../../v4/util/CSSUtil"; +import { getDefinedStyles, getComputedStyle } from "../../../../v4/util/CSSUtil"; import { DOMUtil } from "../../../dom/DOMUtil"; export class RPTUtil { @@ -453,7 +453,7 @@ export class RPTUtil { * an "inline" CSS display property tells the element to fit itself on the same line. An 'inline' element's width and height are ignored. * some element has default inline property, such as , * most formatting elements inherent inline property, such as , , , - * other inline elements: