Forum Bugs

text-indent and text-decoration

henning
Hi,

I have this HTML code:
    <div class="clause">
        <div class="atadd">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
        </div>
    </div>

    <div class="atadd">
        <div class="clause">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
        </div>
    </div>

    <div class="atdel">
        <div class="clause">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
        </div>
    </div>


and these styles:
.clause{
    margin-left:    6em;
    text-indent:    -2em;
}
.atadd {
    color: blue;
    text-decoration: underline;
}

.atdel {
    color: red;
    text-decoration: line-through;
    font-weight: bold;
}


The text-decoration (either underline or line-through) is not correctly applied to the text. When the text-indent is negative the text-decoration is not applied to the text that appears before the left margin. When the text-indent is positive the text-decoration is applied to the whitespace before the text. Is this a bug? I'm using Prince 7.0.

Thanks,

Henning
  1. test.png260.8 kB
mikeday
This looks like a bug, nice catch! We'll add it to the roadmap to fix in a future release.
mikeday
This bug has been fixed in Prince 8.0, beta available now. Thanks again for letting us know! :)