W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > May 2022

Re: [mediacapture-region] What should the spec say about elements like HTMLAudioElement? (#51)

From: Elad Alon via GitHub <sysbot+gh@w3.org>
Date: Fri, 27 May 2022 17:00:13 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-1139801961-1653670811-sysbot+gh@w3.org>
The parallel drawn with `requestFullscreen` does indeed make some sense. But, still, I cannot easily imagine a real purpose for cropping to the bounding box of an HTMLAudioElement. Consider too that this is going to look different between different implementations. And consider how some implementations have a non-rectangular or partially-transparent HTMLAudioElement, which means pixels from background content will poke through.

**Note:** This is not the only case of non-rectangular or partially-transparent element. We've used the bounding box for a reason. But the **special thing** with HTMLAudioElement is that non-rectangularity and/or transparency is different between user agents, which means an application misguidedly trying to use it as a crop-target would yield non-uniform results. It's a footgun.

GitHub Notification of comment by eladalon1983
Please view or discuss this issue at https://github.com/w3c/mediacapture-region/issues/51#issuecomment-1139801961 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 27 May 2022 17:00:14 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:57 UTC