Skip to content

[selectors-4] clarify when :volume-locked matches #8061

@foolip

Description

@foolip

https://w3c.github.io/csswg-drafts/selectors-4/#sound-state defines the :volume-locked pseudo-class as:

The :volume-locked pseudo-class represents an element capable of making sound when programmatically changing the element’s volume does not change the element’s effective media volume.

I wasn't able to parse what this means, and found in web-platform-tests/interop#224 (comment) that there aren't any tests to give clues either.

The answer can be found in #3933 (comment), and it would be great if it was spelled out in the spec that this is about the first step of the definition in HTML:

If the user has indicated that the user agent is to override the volume of the element, then return the volume desired by the user.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions