:playing
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Der :playing
CSS-Pseudoklassen-Selektor repräsentiert den Wiedergabezustand eines Elements, das abspielbar ist, wie <audio>
oder <video>
, wenn dieses Element „spielt“.
Ein Element wird als spielend betrachtet, wenn es die Medienressource derzeit abspielt oder wenn es vorübergehend aus anderen Gründen als der Benutzerabsicht (wie :buffering
oder :stalled
) angehalten wurde.
Syntax
css
:playing {
/* ... */
}
Beispiele
CSS
css
:playing {
border: 5px solid green;
}
Spezifikationen
Specification |
---|
Selectors Level 4 # selectordef-playing |
HTML # selector-playing |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
:playing |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.