Skip to content

Commit

Permalink
update the rule #1676
Browse files Browse the repository at this point in the history
  • Loading branch information
shunguoy committed Oct 9, 2023
1 parent 478f7a7 commit efd3098
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,12 @@ export let element_tabbable_unobscured: Rule = {
if (VisUtil.isNodeVisible(elem)) {
const bnds = mapper.getBounds(elem);
var zStyle = win.getComputedStyle(elem);
let z_index = "0";
if (zStyle !== null) {
let z_index;
if (zStyle === null)
z_index = 0;
else {
z_index = zStyle.zIndex;
if (!z_index || z_index === 'auto')
if (!z_index || !Number.isInteger(z_index))
z_index = "0";
}
if (bnds.height !== 0 && bnds.width !== 0
Expand Down

0 comments on commit efd3098

Please sign in to comment.