W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2010

[whatwg] [WebSRT] the outline use case

From: David Bruant <bruant@enseirb-matmeca.fr>
Date: Sun, 25 Jul 2010 14:01:09 +0200
Message-ID: <4C4C2785.1000404@enseirb-matmeca.fr>
Hi,

In the case where the video is changing quickly (and espescially the
colors behind the subtitles), having a "constant" contrast helps the
reader. This can be achieved by adding a background to the text. There
are couple of examples of this in the use case page
(http://wiki.whatwg.org/wiki/Use_cases_for_timed_tracks_rendered_over_video_by_the_UA),
like the one with the text "children of my age, when they were growing up".

However, in contexts where there is a lot of text, the background of the
text will hide a big part of the video. A way to have a more discrete
"constant contrast" could be to have a text outline. For instance, a
white text outlined in black. There are actually couple of these in the
use case page (like the image with Keanu Reeves).

After a quick investigation, text outline can be achieved by using
text-shadow (examples :
http://www.w3.org/Style/Examples/007/text-shadow#outline) or even the
CSS3 text-outline property
(http://www.w3.org/TR/css3-text/#text-outline). This property is not
implemented anywhere as far as I know. However, webkit implements
text-stroke ( http://webkit.org/blog/85/introducing-text-stroke/) which
seems to do the same thing.

David
//
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100725/54d59299/attachment.htm>
Received on Sunday, 25 July 2010 05:01:09 UTC

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