emmet icon indicating copy to clipboard operation
emmet copied to clipboard

Missing `track` tag for markup

Open rzhao271 opened this issue 3 years ago • 3 comments

Downstream issue: https://github.com/microsoft/vscode/issues/118902

@pixieaka any ideas for how the track abbreviation should look, and what it should expand to?

rzhao271 avatar Apr 02 '21 16:04 rzhao271

I guess if it's like source tag implementation it's will be great.

image

<track src="example.vtt" kind="subtitles" srclang="en" label="English">

Attribute Value Description
default default Specifies that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate
kind captions chapters descriptions metadata subtitles Specifies the kind of text track
label text Specifies the title of the text track
src URL Required. Specifies the URL of the track file
srclang language_code Specifies the language of the track text data (required if kind="subtitles")

pixieaka avatar Apr 02 '21 17:04 pixieaka

Can dafault values for kind="subtitles" and for srclang="en" and for label="english". And cursor will first at src parameter and pass through other parameters as optional if user want to change any of other values.

pixieaka avatar Apr 02 '21 17:04 pixieaka

I would like to contribute in adding the track tag. Do we want to have one abbreviation with the src, kind, srclang, label attributes or more combinations like the source tag?

AnuBhar avatar Apr 16 '21 07:04 AnuBhar