[ttml2] tts:fontShear should apply to <p> and not individual <span>

palemieux has just created a new issue for https://github.com/w3c/ttml2:

== tts:fontShear should apply to <p> and not individual <span> ==
`tts:fontShear` currently specifies that "for the purpose of determining applicability of this style property, each character child of a `p` element is considered to be enclosed in an anonymous span." Combined with the fact that the style property is inheritable, this means that the shear transformation is applied independently to each character child of a `p` element.

Based on D-Cinema practice, a `p` should instead be sheared as a block (instead of each of its character elements independently) in order to preserve character alignment across lines esp. in the case of ruby text (see https://github.com/w3c/imsc-tests/blob/imsc-1.1/imsc1_1/png/fontShear001/3.000000.png).

Furthermore, shearing of inline elements is not supported by CSS.

I recommend making `tts:fontShear` applicable to `p` only, and specify that it yields a transformation of the entire block.

Alternatively, `#fontShear` could be split into `#fontShear-block` and `#fontShear-inline`, and the semantics of `tts:fontShear` clarified to specify that how it applies differently to inline and block areas.



Please view or discuss this issue at https://github.com/w3c/ttml2/issues/784 using your GitHub account

Received on Monday, 21 May 2018 22:25:19 UTC