question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Visual audit reporting

See original GitHub issue

Feature request summary

Visually convey why applicable audits are failing by highlighting affected UI in the context of the page, either statically overlaid on a screenshot or interactively on the page itself.

The VisBug project is already well-positioned to handle the visualization of audit failures so it’s worth exploring possible integration points between that and LH. For example, perhaps VisBug could run LH audits under the hood and highlight audit failures based on the JSON LHR. cc @argyleink

What is the motivation or use case for changing this?

Many of the audits are inherently visual in nature. They are testing that visible parts of the page behave as expected. When Lighthouse identifies elements that fail the audit, we show their innerHTML or selector to convey what is failing and rely on text to explain why it failed.

By showing the results visually, it’s much easier to convey both what is failing and why. For example, the tap targets SEO audit checks for overlapping links/buttons. The results are a table of elements and box sizes. In addition to this easily serializable format, it would be helpful for users to be able to see these elements overlapping on the page so it’s not only obvious what the issue is but also how to fix it.

Prototype of a visual report of overlapping tap targets:

image

Contrast that with the text-based approach:

image

Here is a list of audits that are candidates for this visual reporting approach:

  • Performance
    • properly size images
    • defer offscreen images
    • efficiently encode images
    • serve images in next-gen formats
    • use video formats for animated content
  • Accessibility
    • all text remains visible during webfont loads
    • form elements do not have associated labels
    • image elements do not have [alt] attributes
    • some elements have a [tabindex] value greater than 0
    • links do not have a discernible name
    • buttons have an accessible name
    • background and foreground colors have a sufficient contrast ratio
    • [id] attributes on the page are unique
    • [accesskey] attributes on the page are unique
    • <input type="image"> elements have [alt] text
    • <object> elements have [alt] text
    • <video> elements contain a <track> element with [kind=“captions”]
    • <video> elements contain a <track> element with [kind=“description”]
  • Best Practices
    • displays images with correct aspect ratio
  • SEO
    • document doesn’t use legible font sizes
    • links have descriptive text
    • document doesn’t have overlapping tap targets

How is this beneficial to Lighthouse?

Visual reporting will make it easier for LH users to make sense of the results and fix issues.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
mattzeunertcommented, Mar 18, 2019
4reactions
patrickhulcecommented, Mar 18, 2019

@mattzeunert that is epic! 🤩

We should make this a priority IMO. Massive improvement for all the a11y audits too! 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Making audits more effective through data visualization
Making audits more effective through data visualization. Charts, dashboards, and other visuals can help practitioners spot trends and ...
Read more >
Visual Stories Transform Audit Speak into Engaging Reports
Visuals aren't just pretty pictures that go with text. They transform audit speak into engaging and understandable reports.
Read more >
Visual Audit - YouTube
Continuous Auditing & Reporting Lab ProjectsPresenter: Heejae LeePlease subscribe to our channel to get the latest updates on the RU Digital ...
Read more >
How to Conduct a Brand Visual Audit of Your Website - Mention
A brand visual audit is a check-up that allows you to assess the coherence of visual elements such as logos, fonts, website design,...
Read more >
Visual Software LLC: Premium Audit Solutions Software
Visual Software offers a risk free trial. This includes all development, integration, reporting, training, testing and running your premium audit department in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found