mirror of
https://github.com/servo/servo
synced 2026-05-10 09:02:30 +02:00
Following the HTML specification, on the `volume` or `mute` attrubute changes the user agent must queue a media element task given the media element to fire an event named `volumechange` at the media element (the `generation_id` value will be captured to allow cancel this task - `media-element-load-algorithm` steps 3-5) See https://html.spec.whatwg.org/multipage/#event-media-volumechange See https://html.spec.whatwg.org/multipage/#media-element-load-algorithm Changed the naming of the `playbackRate` and `defaultPlaybackRate` members to match Rust naming conventions (`snake_case`). Testing: Added the `cancellable` subtest to `event_volumechange` test - html/semantics/embedded-content/media-elements/event_volumechange.html Signed-off-by: Andrei Volykhin <andrei.volykhin@gmail.com>