Skip to content

Commit

Permalink
[webvtt/test] Add cases of STYLES
Browse files Browse the repository at this point in the history
  • Loading branch information
NhanNguyen700 committed Nov 3, 2023
1 parent 1acfb60 commit 30dca9e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions testdata/example-in.vtt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ STYLE
::cue(b) {
color: peachpuff;
}
::cue(c) {
color: white;
}
STYLE
::cue(a) {
color: red;
}
::cue(d) {
color: red;
background-image: linear-gradient(to bottom, dimgray, lightgray);
}

Region: id=fred width=40% lines=3 regionanchor=0%,100% viewportanchor=10%,90% scroll=up
Region: id=bill width=40% lines=3 regionanchor=100%,100% viewportanchor=90%,90% scroll=up
Expand Down
10 changes: 10 additions & 0 deletions testdata/example-out.vtt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ STYLE
::cue(b) {
color: peachpuff;
}
::cue(c) {
color: white;
}
::cue(a) {
color: red;
}
::cue(d) {
color: red;
background-image: linear-gradient(to bottom, dimgray, lightgray);
}
Region: id=bill lines=3 regionanchor=100%,100% scroll=up viewportanchor=90%,90% width=40%
Region: id=fred lines=3 regionanchor=0%,100% scroll=up viewportanchor=10%,90% width=40%
Expand Down

0 comments on commit 30dca9e

Please sign in to comment.