Kyogijo Stadiums競技場

Guides, the reference, a gallery of every picture it can draw, and how it compares: the pages are made from the package's own files when the site is built.

About the name

The pages are in English; this contents, the search and the buttons are in Japanese.

Accessibility

  • Each drawing says what it is. The svg has role="img", a <title> (the teams and the score, or the surface) and a <desc> (the competition, the status, the result, and what the surface is), linked by aria-labelledby. The words are in English or Japanese by language.
  • A score is also text. The names, scores and statuses in a drawing are text elements, so they can be selected and found in a page. Pass title and description to say it your own way.
  • Words stay upright. In a tall drawing the text is turned back, and a football field's numbers are upright on both sides.
  • Colour is not the only sign. The winner is marked by a bar under the score and the loser's side is lighter, as well as by the colours.
  • Contrast. The score sits on a dark panel with white words in both themes; a team's words on its colour are black or white by the colour's lightness, or the textColor you give.
  • Motion. A drawing is still. A replay moves only when told to play, never by itself unless autoplay is set (and not then for a reader who prefers reduced motion, who gets steps and no gliding), it pauses when the page is hidden, and each of its controls has a name, a size of at least 44 pixels and a visible focus. A score that changes through update() swells and settles once, or only fades in with reduced motion. The demo's live score moves only when pressed, or every few seconds when told to play and the page is in view.
  • Events are spoken. While a replay plays or steps, a polite live region says each goal, shot, pass and whistle with its time; replayTable lists them as text.
  • Not yet: a spoken update. A page that changes the score may announce it with its own live region; the drawing does not.

Edit this page on GitHub