Looking at the spec though, it's not clear what the behavior should be.
One could argue that the browser could decide to make this call succeed but not send any video frames (Chromium does that), on the other hand the browser could also simply fail as not sending video frames could be seen as no-op (Firefox and Safari do that).
I've noticed screen-capture web platform tests at https://github.com/web-platform-tests/wpt/blob/3728473b8ef5c7f382547d0809fe2d176c254f4c/screen-capture/getdisplaymedia.https.html#L174 say that
getDisplayMedia({video: {frameRate: {max: 0}}})
should fail withOverconstrainedError
.Looking at the spec though, it's not clear what the behavior should be.
One could argue that the browser could decide to make this call succeed but not send any video frames (Chromium does that), on the other hand the browser could also simply fail as not sending video frames could be seen as no-op (Firefox and Safari do that).
See https://wpt.fyi/results/screen-capture/getdisplaymedia.https.html?label=experimental&label=master&aligned