~alcinnz/rhapsode

e90a1a7ee3c0b98bf334442d0055ea8afe1c46a7 — Adrian Cochrane 4 years ago 2e1b1a7
Avoid reading out webforms, that's another to-be-implemented mode.
1 files changed, 3 insertions(+), 15 deletions(-)

M src/DefaultCSS.hs
M src/DefaultCSS.hs => src/DefaultCSS.hs +3 -15
@@ 6,21 6,9 @@ userAgentCSS = unlines [
  "html {speak-as: normal no-punctuation}",
  "",
  "/** Forms **/",
  "button[type=button], input[type=button] {speak: never} /* Won't do anything without JS */",
  "",
  "button::before, input[type=reset]::before, input[type=submit]::before {",
  "        content: 'Button';",
  "        voice-pitch: high;",
  "}",
  "select::before, textarea::before, input::before {content: 'Input'; voice-pitch: high}",
  "output::before {content: 'Output'; voice-pitch: high}",
  "text-area, button, select, input, output {voice-pitch: low}",
  "input[placeholder] {content: attr(placeholder)}",
  "input[value], output[value] {content: attr(value)}",
  "text-area {speak-as: literal-punctuation}",
  "",
  "option {speak: never} option[checked] {speak: always}",
  "select[multiple] option {cue-before: url(bulletpoint.wav)}",
  "button, select, textarea, input, output {speak: never} /* Leave to special form entry mode */",
  "button[type=submit] {speak: always}",
  "input[type=submit][value] {speak: always; content: attr(value)}",
  "",
  "/** Tables **/",
  "table::before {content: 'Table'; voice-volume: x-soft}",