Closed Bug 114430 Opened 23 years ago Closed 20 years ago

margin inside table cell is not correct

Categories

(Core :: Layout: Tables, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: karnaze, Assigned: bernd_mozilla)

References

()

Details

(Keywords: testcase)

Attachments

(4 files, 1 obsolete file)

In the test case to follow, the cell block ends up with a negative y origin, but 
I have stepped through the table cell code and it doesn't appear to be setting 
it to that value (in FinishReflowChild).

                            TableCell(td)(1)@0172F2F0 next=02D94764 {30,0,3060,1
410} [state=70040004] [content=02D72C88] [sc=0172F220]<
                              Block(td)(1)@0172F350 {30,-195,3000,1815} [state=0
1c40004] sc=0172F3D0(i=1,b=0)<
Target Milestone: --- → mozilla1.1
WFM (BuildID: 2002072204)

Could we close that one now ?

/jc
->Tables
Assignee: attinasi → table
Component: Layout → Layout: Tables
Keywords: testcase
QA Contact: petersen → madhur
Attached image Screenshot of testcase
Bug still occurs in a current CVS trunk build:

TableCell(td)(1)@0x8280f88 next=0x8291f74 {32,0,3264,1504} [state=30040004] ...

  Block(td)(1)@0x828102c {32,-208,3200,1936} [state=00c40014] ...

Add lines to the text area until the scrollbar appears and then the fun begins.
retargeting
Target Milestone: mozilla1.1alpha → Future
Mats, what is the bug here, exactly?  The fact that the lower border of the
<textarea> is not painted?
I'll have to admit I can't remember exactly, my comment above isn't very clear
on what the *rendering problem* was.  It is clear regarding the negative
y-offset though (which is what karnaze reported as a problem in comment 0).
Oh, I see.  So this bug is about the frame model not being what's expected...
gotcha.
one needs to verify that this does not happen in
http://lxr.mozilla.org/seamonkey/source/layout/html/table/src/nsTableCellFrame.cpp#588
Attached patch patch for the margin (obsolete) — Splinter Review
mozilla up to now centers a overflowing block with respect to the table cell.
With the patch we would not create a negative offset (this makes the initial
rendering compatible to IE and opera)
taking
Assignee: core.layout.tables → bernd_mozilla
Blocks: 245434
Attached patch clip ytopSplinter Review
Attachment #156734 - Attachment is obsolete: true
Attachment #158901 - Flags: superreview?(bzbarsky)
Attachment #158901 - Flags: review?(bzbarsky)
Comment on attachment 158901 [details] [diff] [review]
clip ytop

r+sr=bzbarsky
Attachment #158901 - Flags: superreview?(bzbarsky)
Attachment #158901 - Flags: superreview+
Attachment #158901 - Flags: review?(bzbarsky)
Attachment #158901 - Flags: review+
fix checked in
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: