sandflow / imscJS

JavaScript library for rendering IMSC Text and Image Profile documents to HTML5
BSD 2-Clause "Simplified" License
83 stars 31 forks source link

xml:space preserve breaks rubyAlign #185

Open cconcolato opened 4 years ago

cconcolato commented 4 years ago

The attached file rubyAlign004_bug.ttml.zip modified from the IMSC tst suite shows that when xml:space="preserve" is used, it breaks the effect of rubyAlign in a weird way. The 2 lines should be identical.

Issue with xml space preserve and rubyAlign

palemieux commented 3 years ago

@cconcolato It looks like there is a weird interaction between preserving spaces and ruby-align: space-around in CSS:

https://codepen.io/palemieux/pen/OJXeZdY

Separately, it looks like CSS ruby-align is set incorrectly

cconcolato commented 3 years ago

The 2 lines render the same in Chrome. Firefox and Safari shows a difference. I don't know which one is right.