Add css3-speech.vim and test

This commit is contained in:
Kyo Nagashima
2013-12-06 15:07:13 +09:00
parent 2d80e2cc8f
commit d73ffaf54e
5 changed files with 42 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ HISTORY
* Add Compositing and Blending Level 1 features
* Add CSS Fonts Module Level 3 features
* Add CSS Speech Module features
* Split CSS Counter Styles Level 3 features from `css3-lists.vim`
* Follow spec updates
* Add missing values

View File

@@ -0,0 +1,6 @@
syn match cssAuralProp contained "\<voice-\(volume\|balance\|rate\|pitch\|range\|stress\|duration\)\>"
syn match cssAuralProp contained "\<rest\(-\(before\|after\)\)\=\>"
syn keyword cssAuralAttr contained young old neutral preserve moderate reduced
syn match cssAuralAttr contained "\<\(literal\|no\)-punctuation\>"
syn match cssAuralAttr contained "\<\(x-\)\=\(weak\|strong\)\>"
syn match cssValueNumber contained "[-+]\=\d\+\(dB\|st\)"

View File

@@ -28,6 +28,7 @@ syn include @htmlCss syntax/css/css3-regions.vim
syn include @htmlCss syntax/css/css3-ruby.vim
syn include @htmlCss syntax/css/css3-selectors.vim
syn include @htmlCss syntax/css/css3-sizing.vim
syn include @htmlCss syntax/css/css3-speech.vim
syn include @htmlCss syntax/css/css3-transforms.vim
syn include @htmlCss syntax/css/css3-transitions.vim
syn include @htmlCss syntax/css/css3-ui.vim

View File

@@ -378,6 +378,23 @@
display: contain-floats;
}
.speech {
voice-volume: 10dB;
voice-balance: literal-punctuation;
rest-before: no-punctuation;
rest-after: x-weak;
rest: weak;
voice-rate: strong;
voice-pitch: x-strong;
voice-range: young;
voice-stress: old;
voice-duration: neutral;
display: preserve;
display: 10st;
display: moderate;
display: reduced;
}
@supports (display: auto) or
(display: auto) not
(display: auto) {

View File

@@ -388,6 +388,23 @@
display: contain-floats;
}
.speech {
voice-volume: 10dB;
voice-balance: literal-punctuation;
rest-before: no-punctuation;
rest-after: x-weak;
rest: weak;
voice-rate: strong;
voice-pitch: x-strong;
voice-range: young;
voice-stress: old;
voice-duration: neutral;
display: preserve;
display: 10st;
display: moderate;
display: reduced;
}
@supports (display: auto) or
(display: auto) not
(display: auto) {