mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +00:00
LibWeb: Clamp AudioParam's value between min and max
The spec isn't _super_ clear on how this is meant to be done, but the way I understand this is that we should simply clamp the returned 'current value' between 'min' and 'max'. Firefox does not appear to do this clamping, but Chrome does.
This commit is contained in:
parent
e2b5ff2450
commit
94354ea7fb
Notes:
sideshowbarker
2024-07-17 02:39:10 +09:00
Author: https://github.com/shannonbooth
Commit: 94354ea7fb
Pull-request: https://github.com/SerenityOS/serenity/pull/24195
3 changed files with 10 additions and 1 deletions
|
@ -42,5 +42,9 @@
|
|||
dumpAudioParam(frequency);
|
||||
frequency.value = -52;
|
||||
dumpAudioParam(frequency);
|
||||
frequency.value = 100_000;
|
||||
dumpAudioParam(frequency);
|
||||
frequency.value = -22051;
|
||||
dumpAudioParam(frequency);
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue