Closed
Bug 259915
Opened 20 years ago
Closed 16 years ago
overflow:hidden on td with border clips left side of content
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: bfults, Unassigned)
References
()
Details
(Keywords: testcase)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10
This is a bit of an edge case and I don't know if it's related to bug 221154.
If you have a td with overflow:hidden and a border which is inside of a table
with border-collapse:collapse and happen to use 11px Tahoma font inside the td,
you will see this bug.
In that exact case, there is partial clipping that occurs on the left side of
the cell that will obscure the left side of a character. This is easiest to see
when there is a letter with a tall verical line on the left side like an "M" or
an "L".
Reproducible: Always
Steps to Reproduce:
1. View the testcase.
2. Observe the clipped text in the td.
3. Click the button to show that toggling overflow:hidden will make the big
disappear.
Reporter | ||
Comment 1•20 years ago
|
||
Reporter | ||
Comment 2•20 years ago
|
||
After further investigation it seems the bug is present with different fonts and
sizes.
There are a few fonts that it is not visible in (e.g. 10px Arial, Verdana). My
guess is that the lines of the character in these fonts just aren't as close to
the left edge.
Reporter | ||
Updated•20 years ago
|
Summary: overflow:hidden on td with border clips 11px Tahoma → overflow:hidden on td with border clips left side of content
![]() |
||
Comment 3•20 years ago
|
||
I'm seeing this in a Linux build from this morning.... Looks like the overflow
area is wrong?
Comment 4•19 years ago
|
||
*** Bug 322993 has been marked as a duplicate of this bug. ***
Comment 5•19 years ago
|
||
It clips 1px off of text including verdana.
Reference testcase: https://bugzilla.mozilla.org/attachment.cgi?id=208274
Cell padding has no effect on elimating the bug. The only way to do it would be to imbed text within another container to offset it from the edge of the table data element.
Comment 6•19 years ago
|
||
This testcase shows the bug in more detail. It seems to be based on half the width of the border. The larger the border the more content its gunna clip from all sides. It seems like the program is using a different algorithm to determine the content area and the border sides. My guess is that the formula calculating the content area is using the complete border width (which is shared by the ajacent cells and table margins) instead of 1/2 the boarder width (the width that actually invades the cell).
It would seem to be a minor correction in the algorithm to compute the content area by simply dividing the border width by 2 to get the correct content area.
marking wfm
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•