W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2011

[whatwg] Google Feedback on the HTML5 media a11y specifications

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 24 Jan 2011 15:54:43 -0800
Message-ID: <AANLkTinwFMVb+n=XhOEtouy8KgTM0w7B897Fu_053ZrN@mail.gmail.com>
On Mon, Jan 24, 2011 at 3:45 PM, Glenn Maynard <glenn at zewt.org> wrote:
> As an aside: the font stroke (the outline around each letter) in the above
> clip helps readability substantially. ?A solid font color always tends to
> blend into the background in places, where a two-color stroked font provides
> its own contrast. ?I've used the same thing in game UIs rendered on top of a
> moving background. ?Tangental, but I figured I'd point it out.

Right now, the WebVTT spec handles this by writing the text in white
on top of a partially-transparent black background.  The text thus
never has contrast troubles, at the cost of a dark block covering up
part of the display.

Stroking text is easy, though.  Webkit has an experimental property
for doing it directly.  Using existing CSS, it's easy to adapt
text-shadow to produce a good outline - just make four shadows, offset
by 1px in each direction, and you're good.

~TJ
Received on Monday, 24 January 2011 15:54:43 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:30 UTC