Skip to content

🚀 Feature: Switch from <canvas> to native <progress> element in browser reporter #5113

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Feature Request Checklist

Overview

Filing a backing issue for #5015: right now, the Mocha browser reporter uses a <canvas> element to visualize a progress circle. That's a holdover from when the reporter was written long ago and it was hard to do progress visualizations in CSS.

Suggested Solution

#5015 (comment): Now, many years later, the element is supported in all major browsers. Even IE 10! (which Mocha no longer supports). Proposal: let's remove the canvas altogether, and switch to a full HTML/CSS <progress>?

Alternatives

Maintaining two code paths for the visualization is an extra maintenance burden. Not a fan of the idea.

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: browserbrowser-specificsemver-minorimplementation requires increase of "minor" version number; "features"status: accepting prsMocha can use your help with this one!type: featureenhancement proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions