Forum Bugs

text-decoration of single space in <span>

val
Hi,

looks like I run in to an issue with text decoration of single space in <span> element.

<p>2015<span style="background-color: yellow; text-decoration: line-through;"> </span>/ 2016</p>


Space in <span> gets's highlighted with background color, but text-decoration is not working.

Running prince-10r7-win64 version.

At the moment found a workaround of selecting all elements with single space and particular class and replacing space with &nbsp;.
hallvord
Hi, this seems like a bug in Prince - browsers show the text-decoration you would expect. I can also confirm that nbsp works.
I've written a test for this - borrowing your code basically, hope you don't mind :) - and put it here:
https://github.com/yeslogic/miscellaneous-testcases/blob/master/layout/text-decoration-whitespace-001.htm

Announcement: repos for tests/utils

val
hallvord, nice repository ;)