Re: Why does the text shadow direction depend on the writing direction?

Have you asked the CSS WG if they consider it to be a property of text or a
property of the rendered image of text. I would expect light source shadow
to be a property of the latter, but not the former.

On Fri, Apr 27, 2018 at 11:08 PM, Pierre-Anthony Lemieux <pal@sandflow.com>
wrote:

> Hi all,
>
> The direction of the shadow offsets specified by tts:textShadow currently
> depends on the writing direction [1]:
>
> """
> The first <length> term denotes the offset in the inline progression
> direction of the associated area [...], the second <length> term denotes
> the offset in the block progression direction of the associated area
> """
>
> Is there a specific reason for this divergence from CSS, where offsets are
> relative to the horizontal and the vertical? I would think that the shadow
> direction should remain consistent for all text on the root container,
> regardless of the writing direction. For example, if lrtb and tbrl texts
> are mixed on a page, wouldn't it be weird if the shadow were different on
> both texts, as if the light source were not uniform?
>
> Best,
>
> -- Pierre
>
> [1] https://www.w3.org/TR/ttml2/#style-value-shadow
>

Received on Saturday, 28 April 2018 08:09:15 UTC