Description of the issue:
On brave [Version 1.2.41 Chromium: 79.0.3945.88 (Official Build) (64-bit), on macOS the
CanvasRenderingContext2D.measureText() always return 0 for all values.
width: 0 actualBoundingBoxLeft: 0 actualBoundingBoxRight: 0 actualBoundingBoxAscent: 0 actualBoundingBoxDescent: 0
I have tested it on Chrome/Brave on Android/Firefox and it works as expected on all of these browsers.
Steps to Reproduce (add as many as necessary)
Go to the following link on brave desktop https://jsfiddle.net/loktar/a9zhc/2/ text should be center.
Actual Result (gifs and screenshots are welcome!):
Text is align left where it should be center, the issue is that brave always return 0 for
ctx.measureText().width should return a number greater than 0
Reproduces how often:
Operating System and Brave Version(See the
About Brave page in the main menu):
[Version 1.2.41 Chromium: 79.0.3945.88 (Official Build) (64-bit) macOS
Thanks a lot,