I have some really simple markup, even without any CSS. But the whitespace around the dash is rendered differently in Firefox and Chrome.
This is the content:
Time Period: 2019-11-19, 00:00:00 - 00:00:00
Firefox moves the dash to left, Chrome puts it right in the middle between the text.
Edit
This is the HTML:
<div class="some-hint">
<span>Time Period:</span>
<span class="bold">2019-11-19, 00:00:00</span> - <wbr>
<span class="bold">00:00:00</span>
</div>
Apart from the comment from Andrew Morton: I have noticed, that both browsers moves the dash to the left, when the <wbr>
is removed.
You can compare it here: https://jsfiddle.net/bair_web/Lsmwz4k6/
Firefox version 70, Chrome version 78, Linux (KDE) based.
I've scanned the documentation for <wbr>
and related stuff, I've tried to add some padding to the left hand side <span>
, but I did not found a good solution for both browsers (not to mention Edget and IE11). Which CSS can I use or how would I need to change the HTML for getting the same result on the screen? Has anyone seen something similar?