~alcinnz/rhapsode

b0c13c45da4df532ce69dd6eba541db1b3d1702d — Adrian Cochrane 4 years ago 87bf54f
Extend user-agent.css for HTML5 support.
1 files changed, 32 insertions(+), 14 deletions(-)

M user-agent.css
M user-agent.css => user-agent.css +32 -14
@@ 1,5 1,5 @@
head, link, meta, style, script, title {speak: never}
datalist {speak: never}
head, link, meta, style, script, title, base {speak: never}
datalist, template {speak: never}

/** Forms **/
/* Hide buttons that don't do anything */


@@ 34,18 34,18 @@ table caption {voice-volume: soft}

/** Sectioning **/
footer, header {voice-volume: soft}
h1, h2, h3, h4, h5, h6, legend, caption, th, summary {voice-stress: strong}
h1, h2, h3, h4, h5, h6, legend, th, summary, dt {voice-stress: strong}
h1 {pause: x-strong; voice-rate: x-slow}
h2 {pause: strong; voice-rate: slow}
h3, caption, th, summary, h3 {pause: medium; voice-rate: medium}
h3, th, summary, legend, dt {pause: medium; voice-rate: medium}
h4 {pause: weak; voice-rate: fast}
h5, h6 {pause: x-weak; voice-rate: fast}
h6 {pitch: high}

/** Text **/
hr {pause: x-strong}
p, pre {pause: strong}
pre, address {speak-as: literal-punctuation}
p, pre, samp, blockquote {pause: strong}
pre, address, samp {speak-as: literal-punctuation}

:link {cue-before: url(link.wav); voice-rate: slow}
:link:visited {cue-before: url(link.wav) -1db}


@@ 55,15 55,19 @@ i, em {voice-stress: strong}
br {pause: medium}
code {speak-as: literal-punctuation}
s, del {voice-volume: x-soft}
u {voice-volume: loud}
u, ins {voice-volume: loud}

/** lists **/
li {cue-before: url(bulletpoint.wav); pause: strong}
li li {cue-before: url(bulletpoint.wav) -1db}
li li li {cue-before: url(bulletpoint.wav) -2db}
li li li li {cue-before: url(bulletpoint.wav) -3db}
li li li li li {cue-before: url(bulletpoint.wav) -4db}
li li li li li li {cue-before: url(bulletpoint.wav) -5db}
li, dt, dd {cue-before: url(bulletpoint.wav); pause: strong}
li li, dd dt, dd dd {cue-before: url(bulletpoint.wav) -1db}
li li li, dd dd dt, dd dd dd {cue-before: url(bulletpoint.wav) -2db}
li li li li, dd dd dd dt, dd dd dd dd {cue-before: url(bulletpoint.wav) -3db}
li li li li li, dd dd dd dd dt, dd dd dd dd dd {
    cue-before: url(bulletpoint.wav) -4db
}
li li li li li li, dd dd dd dd dd dt, dd dd dd dd dd dd {
    cue-before: url(bulletpoint.wav) -5db
}

ol {counter-reset: -rhaps-ol1}
ol ol {counter-reset: -rhaps-ol2}


@@ 82,4 86,18 @@ ol ol ol ol ol li::before {
}
ol ol ol ol ol ol li::before {
    content: counters(-rhaps-ol1, -rhaps-ol2, -rhaps-ol3, -rhaps-ol4, -rhaps-ol5, -rhaps-ol6)
}
\ No newline at end of file
}


/** HTML6 **/
abbr[title]::after {content: attr(title); voice-volume: x-soft}
abbr {speak-as: spell-out}

q, blockquote {voice-family: neutral 2}
cite {voice-stress: reduce}
dialog:not([open]) {speak: never}
kbd {speak-as: spell-out}
progress {content: attr(value) "of" attr(max)}
sub {voice-rate: x-fast}
sup {voice-rate: fast} 
var {voice-rate: slow}
\ No newline at end of file