Closed
Bug 668919
Opened 14 years ago
Closed 14 years ago
The ellipsis with text-overflow: ellipsis is sometimes one pixel too low
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
RESOLVED
FIXED
mozilla7
People
(Reporter: pcwalton, Assigned: MatsPalmgren_bugz)
Details
(Keywords: platform-parity, testcase, Whiteboard: [inbound])
Attachments
(4 files)
Screenshots of Panorama attached. Sometimes the ellipsis is one pixel too low for me, depending on the block sizing, but not always.
| Reporter | ||
Comment 1•14 years ago
|
||
| Reporter | ||
Comment 2•14 years ago
|
||
| Assignee | ||
Comment 3•14 years ago
|
||
WFM in a local Linux64 mozilla-central build. I can reproduce it on OSX
though. A testcase would help debugging... do you know what kind of markup
are used for the text there?
| Reporter | ||
Comment 4•14 years ago
|
||
Here's the CSS in question (.tab-title):
http://hg.mozilla.org/mozilla-central/file/c97034c07fe6/browser/themes/pinstripe/browser/tabview/tabview.css#l133
and
http://hg.mozilla.org/mozilla-central/file/c97034c07fe6/browser/base/content/tabview/tabview.css#l73
And here's the markup:
http://mxr.mozilla.org/mozilla-central/source/browser/base/content/tabview/tabitems.js#906
| Assignee | ||
Comment 5•14 years ago
|
||
| Assignee | ||
Comment 6•14 years ago
|
||
Testcase #1 looks fine on Linux on Windows XP. Also when zooming up/down.
On OSX, the top three lines looks fine, on the next four the ellipsis is
too low, the bottom four looks good.
Keywords: testcase
| Assignee | ||
Comment 7•14 years ago
|
||
s/Linux on Windows/Linux and Windows/
| Reporter | ||
Comment 8•14 years ago
|
||
Confirmed on Mac.
| Reporter | ||
Updated•14 years ago
|
Hardware: x86 → All
| Assignee | ||
Comment 9•14 years ago
|
||
The problem is that nsTextFrame pixel-snaps the baseline.y before painting
the text, and we need to do the same when painting the marker text.
Should be an easy fix, just factoring out nsTextFrame::GetSnappedBaselineY
to nsLayoutUtils...
tracking-firefox7:
--- → ?
Component: Layout: Text → Layout: Block and Inline
Keywords: pp
QA Contact: layout.fonts-and-text → layout.block-and-inline
Target Milestone: --- → mozilla7
| Assignee | ||
Updated•14 years ago
|
Assignee: nobody → matspal
| Assignee | ||
Comment 10•14 years ago
|
||
Attachment #543626 -
Flags: review?(roc)
Comment on attachment 543626 [details] [diff] [review]
fix + reftest, rev. 1
Review of attachment 543626 [details] [diff] [review]:
-----------------------------------------------------------------
Attachment #543626 -
Flags: review?(roc) → review+
| Assignee | ||
Comment 12•14 years ago
|
||
Flags: in-testsuite+
Whiteboard: [inbound]
Comment 13•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
tracking-firefox7:
? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•