Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple page with overflow-x: scroll, block and inline elements crashes a11y test #13118

Closed
2 tasks done
travisdowns opened this issue Sep 24, 2021 · 2 comments
Closed
2 tasks done

Comments

@travisdowns
Copy link

FAQ

URL

https://travisdowns.github.io/misc/sorting.html

What happened?

The a11y test crashes and reports a question mark, with axe-core error: axe-core Error: Cannot read properties of undefined (reading 'filter').

The trimmed json result:

{
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36",
  "environment": {
    "networkUserAgent": "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4420.0 Mobile Safari/537.36 Chrome-Lighthouse",
    "hostUserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36",
    "benchmarkIndex": 1126,
    "credits": {
      "axe-core": "4.2.3"
    }
  },
  "lighthouseVersion": "8.1.0",
  "fetchTime": "2021-09-24T06:28:33.879Z",
  "requestedUrl": "http://192.168.1.66:4000/misc/sorting.html",
  "finalUrl": "http://192.168.1.66:4000/misc/sorting.html",
  "runWarnings": [],
...
    "color-contrast": {
      "id": "color-contrast",
      "title": "Background and foreground colors have a sufficient contrast ratio",
      "description": "Low-contrast text is difficult or impossible for many users to read. [Learn more](https://web.dev/color-contrast/).",
      "score": null,
      "scoreDisplayMode": "error",
      "errorMessage": "axe-core Error: Cannot read properties of undefined (reading 'filter')"
    },

What did you expect?

No crashes.

What have you tried?

I have reduced the problem to a simple repro case as shown. The key elements are a block-display element (pre) with overflow-x: scroll with an inner display: inline, in this case <span>. The inner element must overflow horizontally have have a certain minimum height (if you remove some of the x chars in either vertical or horizontal direction, the test starts passing).

How were you running Lighthouse?

CLI, Chrome DevTools

Lighthouse Version

lhci 0.8.1

Chrome Version

Google Chrome 93.0.4577.82

Node Version

v16.9.1 (also fails with 12)

Relevant log output

No response

@patrickhulce
Copy link
Collaborator

Thanks for filing @travisdowns! This is a bug in axe-core which I have filed at dequelabs/axe-core#3166, when they fix it we'll pick it up in an update.

@adamraine
Copy link
Member

This appears to be fixed by our recent axe bump #13441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants