Update HTMLMediaElement.preload type and comment (#1113)

* Update HTMLMediaElement.preload type and comment

* Apply suggestions from code review

Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com>

* Run baseline-accept on changes from code review

Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com>
This commit is contained in:
Martin Johns 2021-08-23 21:53:01 +02:00 коммит произвёл GitHub
Родитель 21da71e984
Коммит 5b728657f4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 12 добавлений и 3 удалений

4
baselines/dom.generated.d.ts поставляемый
Просмотреть файл

@ -6940,8 +6940,8 @@ interface HTMLMediaElement extends HTMLElement {
playbackRate: number;
/** Gets TimeRanges for the current media resource that has been played. */
readonly played: TimeRanges;
/** Gets or sets the current playback position, in seconds. */
preload: string;
/** Gets or sets a value indicating what data should be preloaded, if any. */
preload: "none" | "metadata" | "auto" | "";
readonly readyState: number;
readonly remote: RemotePlayback;
/** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */

Просмотреть файл

@ -1554,7 +1554,7 @@
"comment": "Gets or sets the current playback position, in seconds."
},
"preload": {
"comment": "Gets or sets the current playback position, in seconds."
"comment": "Gets or sets a value indicating what data should be preloaded, if any."
},
"networkState": {
"comment": "Gets the current network activity for the element."

Просмотреть файл

@ -2792,6 +2792,15 @@
}
}
}
},
"HTMLMediaElement": {
"properties": {
"property": {
"preload": {
"overrideType": "\"none\" | \"metadata\" | \"auto\" | \"\""
}
}
}
}
}
},