[whatwg] [WebSRT] the outline use case
bruant at enseirb-matmeca.fr
Sun Jul 25 05:01:09 PDT 2010
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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg