Skip to content

Commit af13585

Browse files
authored
Merge pull request #56 from hail2u/issue55
Add webvtt1.vim
2 parents 5b1d567 + 289619a commit af13585

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

after/syntax/css/webvtt1.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
syn match cssPseudoClassId contained "::\<cue\(-region\)\=\>"
2+
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start="::cue\(-region\)\=(" end=")" oneline

after/syntax/html.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,5 @@ syn include @htmlCss syntax/css/selectors.vim
7676
syn include @htmlCss syntax/css/selectors4.vim
7777
syn include @htmlCss syntax/css/svg2.vim
7878
syn include @htmlCss syntax/css/web-animations-1.vim
79+
syn include @htmlCss syntax/css/webvtt1.vim
7980
syn include @htmlCss syntax/css/worklets-1.vim

test/test.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,13 @@
871871
display: auto;
872872
}
873873

874+
.webvtt1::cue,
875+
.webvtt1::cue-region,
876+
.webvtt1::cue(#cue1),
877+
.webvtt1::cue-region(#scroll), {
878+
display: auto;
879+
}
880+
874881
.will-change-1 {
875882
will-change: scroll-position;
876883
}

test/test.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,14 @@
951951
}
952952
</style>
953953
<style>
954+
.webvtt1::cue,
955+
.webvtt1::cue-region,
956+
.webvtt1::cue(#cue1),
957+
.webvtt1::cue-region(#scroll), {
958+
display: auto;
959+
}
960+
</style>
961+
<style>
954962
.will-change-1 {
955963
will-change: scroll-position;
956964
}

0 commit comments

Comments
 (0)