[Webkit-unassigned] [Bug 147877] New: Text with text-overflow:ellipsis and text-align: right truncates the ellipsis character
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 11 04:18:25 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=147877
Bug ID: 147877
Summary: Text with text-overflow:ellipsis and text-align: right
truncates the ellipsis character
Classification: Unclassified
Product: WebKit
Version: 525.x (Safari 3.2)
Hardware: Macintosh Intel
OS: Mac OS X 10.8
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jjohns98684 at gmail.com
When using text-overflow:ellipsis in an element where the text is right-aligned, the ellipsis character is never shown. If the text-align property is removed or disabled, the ellipsis occurs. This occurs on OSX Safari 7/8 only. Windows version is not affected, and neither are Chrome/FF/IE 10/11
I created a jsfiddle at http://jsfiddle.net/krd3yxbh/12/ to demonstrate the issue, and the html/css is replicated below:
<div class = 'outer-container' id = 'cell-1'>
<div class = 'cell-container'>
<div class = 'account-cell'>
<span class = 'account-currency'> $</span>
(1234567.89) <!-- text is truncated at the 6 with no ellipsis character visible. Disable text-align in CSS and ellipsis will show. -->
</div>
</div>
</div>
<div class = 'outer-container' id = 'cell-2'>
<div class = 'cell-container'>
<div class = 'account-cell'>
<span class = 'account-currency'> $</span>
(1234567.89) <!-- ellipsis shows when text-align is removed -->
</div>
</div>
</div>
#cell-1
{
top: 40px;
text-align: right;
}
#cell-2
{
top: 55px
}
.outer-container
{
left: 100px;
position: absolute;
overflow: hidden;
width: 67px;
height: 14px;
background-color: #FFFFFF;
border: 1px solid black;
font-size: 11px;
}
.cell-container
{
padding: 0px 3px 1px;
width: 61px;
display: table-cell;
height: 14px;
vertical-align: middle;
font-family: Tahoma, sans-serif;
}
.account-cell
{
color: #FF0000;
position: relative;
width: 52px;
white-space: nowrap;
overflow:hidden;
text-overflow:ellipsis;
padding-left: 9px;
float: right;
}
.account-currency
{
position:absolute;
left: 0px;
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150811/6f681410/attachment.html>
More information about the webkit-unassigned
mailing list