mochajs / mocha

β˜•οΈ simple, flexible, fun javascript test framework for node.js & the browser

Home Page:https://mochajs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸš€ Feature: Switch from <canvas> to native <progress> element in browser reporter

JoshuaKGoldberg opened this issue Β· comments

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