matplotlib / matplotlib/matplotlib

[MNT]: Clarify web browser policy

Open
#32,165 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Maintenance
Dominant language
Python
Stars
23.2k
Forks
8.5k
Avg merge
1d 6h
Merged PRs (30d)
66

Description

### Summary

I needed a quick break from macOS backend work, so I'm looking at modernizing and cleaning up the `web_backend` JavaScript files. They currently use a mixture of outdated JavaScript syntax while also using modern web browser features like ResizeObserver.

I noticed that we removed the ResizeObserver ponyfill in #31669. Do we have an official policy on which specific web browser versions we support?

For example, we have code to check CanvasRenderingContext2D.backingStorePixelRatio; however, that property was never official and removed around ~2015. We also warn if a WebSocket doesn't support binaryType; however, [it has 100% tracked user support on caniuse](https://caniuse.com/?search=binaryType).

### Proposed fix

-

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the web_backend JavaScript files referenced in the issue and the discussion around #31669, then review the existing browser capability checks. Done means the project has an agreed policy for supported browser versions and the outdated or unnecessary checks are identified for cleanup.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, web-dev
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.