Open dkneeland opened 6 years ago
This happens when text-shadow
is applied across individual span
elements: each of the span
elements is rendered individually, resulting in span
elements rendered later overlapping those rendered earlier. See example below:
https://codepen.io/palemieux/pen/aQvdQr
Until CSS supports becomes reality, imscJS unfortunately needs to wrap individual characters in span
elements, e.g. to render itts:fillLineGap
.
In typical use cases, isn't shadow offset small enough to avoid overlap?
Normally the subtitle shadow will be slightly to the right/bottom of the text. I agree that in normal practice, this bug is not an issue.
@dkneeland Ok. That is good news. I suggest keeping the issue open in the backlog, revisiting it regularly.
When tts:textShadow has a negative X axis direction, the shadow will cover the preceding text.
IMSCJS_Issue_textShadow.xml.txt